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

Commit

Permalink
Docs: Used the new EditorUI#setEditableElement() API in the custom ed…
Browse files Browse the repository at this point in the history
…itor guides.
  • Loading branch information
oleq committed Jun 27, 2019
1 parent 1ea310d commit 007aa56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_snippets/examples/bootstrap-ui-inner.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class BootstrapEditorUI extends EditorUI {
const editableElement = view.editable.element;

// Register editable element so it is available via getEditableElement() method.
this._editableElements.set( view.editable.name, editableElement );
this.setEditableElement( view.editable.name, editableElement );

// Let the editable UI element respond to the changes in the global editor focus tracker
// and let the focus tracker know about the editable element.
Expand Down
2 changes: 1 addition & 1 deletion docs/framework/guides/external-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class BootstrapEditorUI extends EditorUI {
const editableElement = view.editable.element;

// Register editable element so it is available via getEditableElement() method.
this._editableElements.set( view.editable.name, editableElement );
this.setEditableElement( view.editable.name, editableElement );

// Let the editable UI element respond to the changes in the global editor focus tracker
// and let the focus tracker know about the editable element.
Expand Down

0 comments on commit 007aa56

Please sign in to comment.