소스 검색

Improved ContextualBalloon initialization.

Oskar Wróbel 8 년 전
부모
커밋
bb9cc0f24b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/ckeditor5-ui/src/contextualballoon.js

+ 2 - 2
packages/ckeditor5-ui/src/contextualballoon.js

@@ -49,8 +49,8 @@ export default class ContextualBalloon extends Plugin {
 		 */
 		this._stack = new Map();
 
-		// Add balloon panel view to editor `body` collection.
-		this.editor.ui.view.body.add( this.view );
+		// Add balloon panel view to editor `body` collection and wait until view will be ready.
+		return this.editor.ui.view.body.add( this.view );
 	}
 
 	static get pluginName() {