Explorar el Código

Docs: Add information about `insertContent` event params.

Maciej Gołaszewski hace 7 años
padre
commit
0dd9de31f2
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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.
 	 */