ソースを参照

Adding content to panel also returns a promise.

Szymon Kupś 9 年 前
コミット
4868925fdd
1 ファイル変更3 行追加1 行削除
  1. 3 1
      packages/ckeditor5-image/src/imagetoolbar.js

+ 3 - 1
packages/ckeditor5-image/src/imagetoolbar.js

@@ -36,7 +36,9 @@ export default class ImageToolbar extends Plugin {
 		const panel = this._panel;
 		const promises = [];
 		const toolbar = new ToolbarView();
-		panel.content.add( toolbar );
+
+		// Add toolbar to balloon panel.
+		promises.push( panel.content.add( toolbar ) );
 
 		// Add buttons to the toolbar.
 		for ( let name of toolbarConfig ) {