Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs: Mentioned the fact that UI update should be called manually for…
Browse files Browse the repository at this point in the history
… UIElements.
  • Loading branch information
mlewand committed Dec 16, 2019
1 parent 4995029 commit 1df49bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/observer/mutationobserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export default class MutationObserver extends Observer {
}
}

// In case only non-relevant mutations were recorded it skips the event & force render (#5600).
// In case only non-relevant mutations were recorded it skips the event and force render (#5600).
if ( viewMutations.length ) {
this.document.fire( 'mutations', viewMutations, viewSelection );

Expand Down
3 changes: 3 additions & 0 deletions src/view/uielement.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ export default class UIElement extends Element {
* return domElement;
* };
*
* If you wish to trigger render of entire editor UI you should call {@link module:core/editor/editorui~EditorUI#update} method
* after rendering your UI element.
*
* @param {Document} domDocument
* @returns {HTMLElement}
*/
Expand Down

0 comments on commit 1df49bc

Please sign in to comment.