8
0
فهرست منبع

Docs: Addressed several API documentation issues in the `DecoupledEditor` class. Closes #37.

Thanks https://github.com/ysct!
Aleksander Nowodzinski 6 سال پیش
والد
کامیت
f7080b5196
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      packages/ckeditor5-editor-decoupled/src/decouplededitor.js

+ 3 - 2
packages/ckeditor5-editor-decoupled/src/decouplededitor.js

@@ -152,7 +152,7 @@ export default class DecoupledEditor extends Editor {
 	 *				document.body.appendChild( editor.ui.view.toolbar.element );
 	 *
 	 *				// Initial data was provided so the editor UI element needs to be added manually to the DOM.
-	 *				document.body.appendChild( editor.ui.element );
+	 *				document.body.appendChild( editor.ui.getEditableElement() );
 	 *			} )
 	 *			.catch( err => {
 	 *				console.error( err.stack );
@@ -207,7 +207,8 @@ export default class DecoupledEditor extends Editor {
 	 * Moreover, the editor data will be set back to the original element once the editor is destroyed.
 	 *
 	 * If the initial data is passed, a detached editor will be created. In this case you need to insert it into the DOM manually.
-	 * It is available under the {@link module:editor-decoupled/decouplededitorui~DecoupledEditorUI#element `editor.ui.element`} property.
+	 * It is available via
+	 * {@link module:editor-decoupled/decouplededitorui~DecoupledEditorUI#getEditableElement `editor.ui.getEditableElement()`}.
 	 *
 	 * @param {module:core/editor/editorconfig~EditorConfig} [config] The editor configuration.
 	 * @returns {Promise} A promise resolved once the editor is ready. The promise resolves with the created editor instance.