tinymce.editor.ui.Ui
This editor ui instance.
Summary
Properties
Name | Type | Summary | Defined by |
---|---|---|---|
registry |
Editor UI registry instance. |
||
styleSheetLoader |
Editor UI stylesheet loader instance. StyleSheetLoader for styles in the editor UI. For content styles, use editor.dom.styleSheetLoader. Added in TinyMCE 5.4 |
Methods
Name | Summary | Defined by |
---|---|---|
Disables the editor user interface. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. Added in TinyMCE 5.6 |
||
Enables the editor user interface. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. Can not be used when in readonly mode. Added in TinyMCE 5.6 |
||
Hides the editor user interface for inline editors. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. If the Added in TinyMCE 5.5 |
||
Determines if the editor user interface is Added in TinyMCE 5.6 |
||
Reveals the editor user interface for inline editors. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. If the Added in TinyMCE 5.5 |
Methods
tinymce.editor.ui.disable()
tinymce.editor.ui.disable()
Disables the editor user interface. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs.
Added in TinyMCE 5.6
tinymce.editor.ui.enable()
tinymce.editor.ui.enable()
Enables the editor user interface. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. Can not be used when in readonly mode.
Added in TinyMCE 5.6
tinymce.editor.ui.hide()
tinymce.editor.ui.hide()
Hides the editor user interface for inline editors. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs.
If the toolbar_persist
option is set to true
and this method is used,
the user interface will remain hidden, regardless of focus.
Added in TinyMCE 5.5
tinymce.editor.ui.isDisabled()
tinymce.editor.ui.isDisabled(): Boolean
Determines if the editor user interface is disabled
(true
) or not (false
).
Added in TinyMCE 5.6
tinymce.editor.ui.show()
tinymce.editor.ui.show()
Reveals the editor user interface for inline editors. This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs.
If the toolbar_persist
option is set to true
and this method is used,
the user interface will remain visible, regardless of focus.
Added in TinyMCE 5.5