CodeMirror change事件

演示

<video src="http://type.so/usr/uploads/2013/10/1770439643.flv";>codemirror.flv</video>

主要代码

Editor.on("change", function (Editor, changes) {
    while (changes) {
        Editor1.replaceRange(changes.text.join("\n"), changes.from, changes.to);
        changes = changes.next;
    }
});

changes.next 不是每次change事件都会有

标签: none

添加新评论