Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
The getEditableElement() method was moved to base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Jan 17, 2019
1 parent 2b24e99 commit eed86b8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/ballooneditorui.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ export default class BalloonEditorUI extends EditorUI {
return this.view.editable.element;
}

/**
* @inheritDoc
*/
getEditableElement( rootName = 'main' ) {
return this.view.editable.name === rootName ? this.view.editable.element : null;
}

/**
* Initializes the UI.
*/
Expand All @@ -78,6 +71,8 @@ export default class BalloonEditorUI extends EditorUI {
editor.editing.view.attachDomRoot( view.editable.editableElement );
view.editable.name = editingRoot.rootName;

this._editableElements.push( view.editable );

this.focusTracker.add( view.editable.editableElement );

enableToolbarKeyboardFocus( {
Expand Down

0 comments on commit eed86b8

Please sign in to comment.