execCommand

Use the execCommand method of the window.AscDesktopEditor object to execute a command specified in the request.

window.AscDesktopEditor.execCommand(command, parameters)

Parameters

NameTypeDescription
commandstringDefines a command that must be executed.
parametersstringDefines the parameters that are passed to the method.

The following commands are available:

Commands

CommandDescription
open:documentOpens a document.
portal:checkpwdTransfers the information about a password from the login page to the desktop app.
portal:loginRegisters a cloud and adds it to the Connected clouds page.
portal:logoutRemoves a cloud from the list on the Connected clouds page.
portal:uithemeChanges a theme of the desktop editor tab.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).