浏览代码

Merge pull request #6022 from ckeditor/i/1666

Docs: Fix misleading references to inline toolbars and decoupled editor in multi-root editor. Closes #1666.
Piotrek Koszuliński 6 年之前
父节点
当前提交
e0b65d9769
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      docs/framework/guides/custom-editor-creator.md

+ 5 - 6
docs/framework/guides/custom-editor-creator.md

@@ -23,7 +23,7 @@ import setDataInElement from '@ckeditor/ckeditor5-utils/src/dom/setdatainelement
 import mix from '@ckeditor/ckeditor5-utils/src/mix';
 
 /**
- * The multi-root editor implementation. It provides an inline editables and a toolbar.
+ * The multi-root editor implementation. It provides inline editables and a single toolbar.
  *
  * Unlike other editors, the toolbar is not rendered automatically and needs to be attached to the DOM manually.
  *
@@ -198,11 +198,10 @@ class MultirootEditorUI extends EditorUI {
 
 		for ( const editable of this.view.editables ) {
 			// The editable UI element in DOM is available for sure only after the editor UI view has been rendered.
-			// But it can be available earlier if a DOM element has been passed to DecoupledEditor.create().
+			// But it can be available earlier if a DOM element has been passed to MultirootEditor.create().
 			const editableElement = editable.element;
 
-			// Register the editable UI view in the editor. A single editor instance can aggregate multiple
-			// editable areas (roots) but the decoupled editor has only one.
+			// Register each editable UI view in the editor.
 			this.setEditableElement( editable.name, editableElement );
 
 			// Let the global focus tracker know that the editable UI element is focusable and
@@ -268,7 +267,7 @@ class MultirootEditorUI extends EditorUI {
 	}
 
 	/**
-	 * Initializes the inline editor toolbar and its panel.
+	 * Initializes the editor main toolbar and its panel.
 	 *
 	 * @private
 	 */
@@ -345,7 +344,7 @@ class MultirootEditorUIView extends EditorUIView {
 		super( locale );
 
 		/**
-		 * The main toolbar of the decoupled editor UI.
+		 * The main toolbar of the multi-root editor UI.
 		 *
 		 * @readonly
 		 * @member {module:ui/toolbar/toolbarview~ToolbarView}