The execute method checks the command state (obtained using the getState method) before executing, and decides whether the action can be performed.
Usage example:
JavaScript |
richEdit.commands.changeParagraphBackColor.execute("red");
richEdit.commands.changeParagraphBackColor.execute("#FF0000");
|