initializeCommandEnabledState

initializeCommandEnabledState Method

Description

This method triggers a commandEnable event for every supported command. The primary purpose of this method is to force the initialization of command UI controls at editor startup. This is useful if you implement a custom editor toolbar.

More information on editor commands is available here.

.initializeCommandEnabledState()

Example

editor.startup(...);

...

// Trigger the commandEnabled event for all commands.
editor.initializeCommandEnabledState();