← すべてのドキュメント

selectionchange イベント

このイベントは、エディター内の選択範囲が変わるたびに発生します。

構文

function(state,cmd,value)

使用例

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