Bladeren bron

Docs: Used the new EditorUI#setEditableElement() API in the custom editor guides.

Aleksander Nowodzinski 6 jaren geleden
bovenliggende
commit
b9b62d1c59

+ 1 - 1
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.js

@@ -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.

+ 1 - 1
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -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.