8
0
Просмотр исходного кода

The `getEditableElement()` method was moved to base class.

Krzysztof Krztoń 7 лет назад
Родитель
Сommit
9cbff93cce
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      packages/ckeditor5-editor-decoupled/src/decouplededitorui.js

+ 3 - 7
packages/ckeditor5-editor-decoupled/src/decouplededitorui.js

@@ -53,13 +53,6 @@ export default class DecoupledEditorUI extends EditorUI {
 		return this._view;
 	}
 
-	/**
-	 * @inheritDoc
-	 */
-	getEditableElement( rootName = 'main' ) {
-		return this.view.editable.name === rootName ? this.view.editable.element : null;
-	}
-
 	/**
 	 * Initializes the UI.
 	 */
@@ -76,7 +69,10 @@ export default class DecoupledEditorUI extends EditorUI {
 		editor.editing.view.attachDomRoot( view.editable.editableElement );
 		view.editable.name = editingRoot.rootName;
 
+		this._editableElements.push( view.editable );
+
 		this.focusTracker.add( this.view.editable.editableElement );
+
 		this.view.toolbar.fillFromConfig( this._toolbarConfig.items, this.componentFactory );
 
 		enableToolbarKeyboardFocus( {