浏览代码

Added API docs to the _showToolbar() method.

Maciej Bukowski 7 年之前
父节点
当前提交
097d9af5f8
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      packages/ckeditor5-widget/src/widgettoolbarrepository.js

+ 5 - 1
packages/ckeditor5-widget/src/widgettoolbarrepository.js

@@ -159,7 +159,11 @@ export default class WidgetToolbarRepository extends Plugin {
 	}
 
 	/**
-	 * Shows up or repositions the given toolbar.
+	 * Shows up the toolbar if the toolbar is not visible and repositions the toolbar's balloon when toolbar's
+	 * view is the most top view in balloon stack.
+	 *
+	 * It might happen here that the toolbar's view is under another view. Then do nothing as the other toolbar view
+	 * should be still visible after the {@link module:core/editor/editorui~EditorUI#event:update}.
 	 *
 	 * @private
 	 * @param {Object} toolbar