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.
detachEvent
Event change
Event selectionchange
Event exec_command