javascriptckeditorckeditor4.x

Is there any way to reset undo in ckeditor after setData?


I want reset the undo functionality after set Data method in ckeditor.

any one know please let me know.

editor.setData(content,function(){
    this.checkDirty();
});

Solution

  • After the trouble of searching the clock All roads do not work I do not know the reason

    reset

    resetDirty

    resetUndo

    The solution is

    CKEDITOR.instances.editor1.setData('Text_Html',function() { this.resetUndo(); });