Ver Fonte

Docs: Add information about `insertContent` event params.

Maciej Gołaszewski há 7 anos atrás
pai
commit
0dd9de31f2
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      packages/ckeditor5-engine/src/model/model.js

+ 3 - 0
packages/ckeditor5-engine/src/model/model.js

@@ -562,6 +562,9 @@ export default class Model {
 	 * The {@link #insertContent default action of that method} is implemented as a
 	 * listener to this event so it can be fully customized by the features.
 	 *
+	 * **Note** The `selectable` parameter for the {@link #insertContent} is optional. When `undefined` value is passed the method uses
+	 * `model.document.selection`.
+	 *
 	 * @event insertContent
 	 * @param {Array} args The arguments passed to the original method.
 	 */