8
0
Prechádzať zdrojové kódy

Fire `ready` event instead of using `ready()` method.

Krzysztof Krztoń 7 rokov pred
rodič
commit
7f3afe797b

+ 1 - 1
packages/ckeditor5-editor-decoupled/src/decouplededitorui.js

@@ -82,6 +82,6 @@ export default class DecoupledEditorUI extends EditorUI {
 			toolbar: this.view.toolbar
 		} );
 
-		this.ready();
+		this.fire( 'ready' );
 	}
 }

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

@@ -202,8 +202,6 @@ class VirtualDecoupledTestEditor extends VirtualTestEditor {
 				editor.initPlugins()
 					.then( () => {
 						editor.ui.init();
-						editor.ui.ready();
-						editor.fire( 'uiReady' );
 						editor.fire( 'dataReady' );
 						editor.fire( 'ready' );
 					} )