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

Adjust to changes in `core/EditorWithUI`.

Krzysztof Krztoń 7 лет назад
Родитель
Сommit
add028fea2

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

@@ -101,7 +101,7 @@ export default class BootstrapEditor extends Editor {
 						editor._elementReplacer.replace( element, editable.element );
 
 						// Tell the world that the UI of the editor is ready to use.
-						editor.fire( 'uiReady' );
+						editor.ui.ready();
 					} )
 					// Bind the editor editing layer to the editable in DOM.
 					.then( () => editor.editing.view.attachDomRoot( editable.element ) )

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

@@ -118,7 +118,7 @@ export default class BootstrapEditor extends Editor {
 						editor._elementReplacer.replace( element, editable.element );
 
 						// Tell the world that the UI of the editor is ready to use.
-						editor.fire( 'uiReady' );
+						editor.ui.ready();
 					} )
 					// Bind the editor editing layer to the editable in the DOM.
 					.then( () => editor.editing.view.attachDomRoot( editable.element ) )

+ 1 - 1
packages/ckeditor5-ui/src/toolbar/balloon/balloontoolbar.js

@@ -61,7 +61,7 @@ export default class BalloonToolbar extends Plugin {
 		this.focusTracker = new FocusTracker();
 
 		// Wait for the EditorUI#init. EditableElement is not available before.
-		editor.once( 'uiReady', () => {
+		editor.ui.once( 'ready', () => {
 			this.focusTracker.add( editor.ui.view.editableElement );
 			this.focusTracker.add( this.toolbarView.element );
 		} );