editor.attachEvent()
実行されるイベントハンドラーをアタッチします。
構文
editor.attachEvent(eventName,eventHandler)
eventName
型:String
呼び出すイベントの名前を指定します。
eventHandler
型:function
イベントが発生したときに実行する関数です。
使用例
editor1.attachEvent("exec_command_newdoc", function (state, cmd, value) {
state.returnValue = true;//handled, don't execute default action
this.setHTMLCode("<p>New Doc...</p>");
});