Procházet zdrojové kódy

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

Krzysztof Krztoń před 7 roky
rodič
revize
1c615ac11a

+ 1 - 1
packages/ckeditor5-editor-balloon/src/ballooneditorui.js

@@ -88,6 +88,6 @@ export default class BalloonEditorUI extends EditorUI {
 			}
 			}
 		} );
 		} );
 
 
-		this.ready();
+		this.fire( 'ready' );
 	}
 	}
 }
 }

+ 0 - 2
packages/ckeditor5-editor-balloon/tests/ballooneditorui.js

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