tinymce.editor.ui.Ui

This editor ui instance.

Summary

Properties

Name Type Summary Defined by

registry

Registry

Editor UI registry instance.

Ui

styleSheetLoader

StyleSheetLoader

Editor UI stylesheet loader instance. StyleSheetLoader for styles in the editor UI. For content styles, use editor.dom.styleSheetLoader.

Ui

Methods

Name Summary Defined by

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.

Ui

tinymce.editor.ui.isEnabled()

Determines if the editor user interface is enabled (true) or disabled (false).

Ui

tinymce.editor.ui.setEnabled()

Sets the state of editor user interface as enabled (true) or disabled (false). This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. Can not be set to 'true' when in readonly mode.

Ui

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.

Ui

Methods

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.


tinymce.editor.ui.isEnabled()

tinymce.editor.ui.isEnabled(): Boolean

Determines if the editor user interface is enabled (true) or disabled (false).

Return value

  • Boolean - true/false if the editor user interface is enabled (true) or disabled (false).


tinymce.editor.ui.setEnabled()

tinymce.editor.ui.setEnabled(state: Boolean)

Sets the state of editor user interface as enabled (true) or disabled (false). This method affects all user interface elements, including: menu bar, toolbar, notifications, and dialogs. Can not be set to 'true' when in readonly mode.

Parameters

  • state (Boolean) - The state in which to set the user interface.


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.