Navigation :
executeCommand
executeCommand Method
Description
Executes an editor command.
.executeCommand(/*String*/ commandName, [parameters])
Parameters
commandName String
The name of the command to be executed. This must be a valid command name. More information on editor commands is
available here.
[parameters]
Commands may have parameters. More information on the parameters for each editor command is
available here.
Example
// Enable the grid.
editor.executeCommand('enableGrid', true);
...
// Start a line drawing operation.
editor.executeCommand('draw_line');