Documentation

selectionchange event

This event fires whenever the selection inside the editor changes.

Syntax

function(state,cmd,value)

Example usage

editor1.attachEvent("change", function () {      
    var textCount = editor1.getPlainText().trim().length;      
    document.title = "textCount:" + textCount;      
});