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

+ 0 - 3
packages/ckeditor5-editor-decoupled/src/decouplededitor.js

@@ -200,9 +200,6 @@ export default class DecoupledEditor extends Editor {
 				editor.initPlugins()
 				editor.initPlugins()
 					.then( () => {
 					.then( () => {
 						editor.ui.init();
 						editor.ui.init();
-						editor.ui.ready();
-
-						editor.fire( 'uiReady' );
 					} )
 					} )
 					.then( () => {
 					.then( () => {
 						const initialData = isElement( sourceElementOrData ) ?
 						const initialData = isElement( sourceElementOrData ) ?

+ 2 - 0
packages/ckeditor5-editor-decoupled/src/decouplededitorui.js

@@ -85,5 +85,7 @@ export default class DecoupledEditorUI extends EditorUI {
 			originKeystrokeHandler: editor.keystrokes,
 			originKeystrokeHandler: editor.keystrokes,
 			toolbar: this.view.toolbar
 			toolbar: this.view.toolbar
 		} );
 		} );
+
+		this.ready();
 	}
 	}
 }
 }