Examples
selectionchange event
This event is raised if the actual selection in the editor area changes.
Syntax
            function(state,cmd,value)
        
Example:
editor1.attachEvent("change", function () {      
    var textCount = editor1.getPlainText().trim().length;      
    document.title = "textCount:" + textCount;      
});