Ereignisse exec_command und exec_command_*
Das Ereignis exec_command_* wird ausgelöst, sobald ein ExecCommand ausgeführt wird.
Ein spezifisches Ereignis wie exec_command_newdoc wird ausgelöst, wenn genau dieser Befehl ausgeführt wird.
Syntax
function(state,cmd,value)
Anwendungsbeispiel
editor1.attachEvent("exec_command_newdoc", function (state, cmd, value) {
state.returnValue = true;//handled, don't execute default action
this.setHTMLCode("<p>NewDoc...</p>");
});