Szymon Kupś преди 7 години
родител
ревизия
8c5fa33cf9
променени са 1 файла, в които са добавени 12 реда и са изтрити 1 реда
  1. 12 1
      packages/ckeditor5-editor-inline/src/inlineeditor.js

+ 12 - 1
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -64,6 +64,16 @@ export default class InlineEditor extends Editor {
 	constructor( elementOrData, config ) {
 		super( config );
 
+		/**
+		 * The element on which the editor has been initialized.
+		 * If editor was initialized with data instead of HTMLElement this property will keep a reference to newly
+		 * created element that need to be added manually to the DOM. For more information see
+		 * {@link module:editor-inline/inlineeditor~InlineEditor.create `InlineEditor.create()`}.
+		 *
+		 * @readonly
+		 * @member {HTMLElement} #element
+		 */
+
 		this.data.processor = new HtmlDataProcessor();
 
 		this.model.document.createRoot();
@@ -156,7 +166,8 @@ export default class InlineEditor extends Editor {
 	 *
 	 * @param {HTMLElement|String} elementOrData The DOM element that will be the source for the created editor
 	 * (on which the editor will be initialized) or initial data for the editor. If data is provided, `editor.element`
-	 * will be created automatically and need to be added manually to the DOM.
+	 * will be created automatically and need to be added manually to the DOM. The element is initialized as a `div`
+	 * element crated in current document's context.
 	 * @param {module:core/editor/editorconfig~EditorConfig} config The editor configuration.
 	 * @returns {Promise} A promise resolved once the editor is ready.
 	 * The promise returns the created {@link module:editor-inline/inlineeditor~InlineEditor} instance.