Command.execute

Execute the command

myCounterCommand.execute = function (scope) {
  var i = scope.get("counter");
  Editor.getActiveDocument().getDocumentElement().setAttribute("count", i);
  scope.set("counter", i++);
}

Command.execute( scope : Scope)

Arguments

scope
Scope. The scope state