Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Adds a custom command that later can be executed using execCommand
tinyMCE.init({
...
setup : function(ed) {
// Register example command
ed.addCommand('mycommand', function(ui, v) {
ed.windowManager.alert('Hello world!! Selection: ' + ed.selection.getContent({format : 'text'}));
});
}
});
| Name | Type | Description |
|---|---|---|
| name | String | Command name to add/override. |
| callback | addCommandCallback | Function to execute when the command occurs. |
| scope | Object | Optional scope to execute the function in. |
Search documentation.
chungwufei
tnx
chungwufei
can you put demos? it could help... :)