Starting from version 7.5, you can change a theme of the desktop editor tab. To do this, use the portal:uitheme command of the execCommand method.
window.AscDesktopEditor.execCommand ("portal:uitheme", editorTheme);
Name | Description | Type | Example |
editorTheme |
Defines the editor theme settings.
It can be set in two ways:
|
string | "theme-dark" |
window.AscDesktopEditor.execCommand("portal:uitheme", "theme-dark")
When the portal:uitheme command is sent, the editor theme is changed to the one specified in the method parameters.