This method triggers a commandEnabled 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.
The commandEnable event is described here.
More information on editor commands is available here
.initializeCommandEnabledState()
editor.startup(...); ... // Trigger the commandEnabled event for all commands. editor.initializeCommandEnabledState();