Przeglądaj źródła

Docs: And now made sure that anyone will be able to understand what's that method for.

Piotrek Koszuliński 7 lat temu
rodzic
commit
75e4273f86
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      packages/ckeditor5-core/src/editor/editorui.js

+ 3 - 0
packages/ckeditor5-core/src/editor/editorui.js

@@ -66,6 +66,9 @@ export default class EditorUI {
 
 	/**
 	 * Fires the {@link module:core/editor/editorui~EditorUI#event:update `update`} event.
+	 *
+	 * This method should be called when the editor UI (e.g. positions of its balloons) needs to be updated due to
+	 * some environmental change which CKEditor 5 is not aware of (e.g. resize of a container in which it is used).
 	 */
 	update() {
 		this.fire( 'update' );