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.changeTableStyle.execute(richEdit.document.tableStylesInfo[1]);
|
Table style settings are available via the RichEditDocument.tableStylesInfo property.