execCommand method
Use the execCommand method of the window.AscDesktopEditor object to execute a command specified in the request.
window.AscDesktopEditor.execCommand(command, parameters);
Parameters
| Name | Type | Description |
|---|---|---|
| command | string | Defines a command that must be executed. |
| parameters | string | Defines the parameters that are passed to the method. |
The following commands are available:
Commands
| Command | Description |
|---|---|
| open:document | Opens a document. |
| portal:checkpwd | Transfers the information about a password from the login page to the desktop app. |
| portal:login | Registers a cloud and adds it to the Connected clouds page. |
| portal:logout | Removes a cloud from the list on the Connected clouds page. |
| portal:uitheme | Changes a theme of the desktop editor tab. |