Command.execute
Execute the command
myCounterCommand.execute = function (scope) {
var i = scope.get("counter");
Editor.getActiveDocument().getDocumentElement().setAttribute("count", i);
scope.set("counter", i++);
}
- Documentation
- › API
- › Global objects API
- › Command.execute
Command.execute( scope : Scope)
: Scope)Arguments
- scope
- Scope. The scope state