8
0
فهرست منبع

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() {