Attaches an event handler that is executed.
editor.attachEvent(eventName,eventHandler)
Type: String
Specifies the name of the event to be called.
Type: function
A function to execute when the event is triggered.
Removes the specified event handler that was registered earlier with the attachEvent method.
editor.detachEvent(eventName,eventHandler)
Type: String
specifies the name of the event that is listened by the event handler.
Type: function
Reference to the event handler function to remove.