public function execCommand(cmd:String, ui:Boolean, val:mixed, a:Object):Boolean
Executes a command on the current instance. These commands can be TinyMCE internal commands prefixed with "mce" or
they can be build in browser commands such as "Bold". A compleate list of browser commands is available on MSDN or Mozilla.org.
This function will dispatch the execCommand function on each plugin, theme or the execcommand_callback option if none of these
return true it will handle the command as a internal browser command.
Params
| Name |
Type |
Description |
| cmd |
String |
Command name to execute, for example mceLink or Bold. |
| ui |
Boolean |
True/false state if a UI (dialog) should be presented or not. |
| val |
mixed |
Optional command value, this can be anything. |
| a |
Object |
Optional arguments object. |
Returns
Boolean True/false if the command was executed or not.