I want to reset the undo history so that the end user can't undo past the last time setData() is invoked.
I found threads describing how to do the same in FCKeditor.
How can I do the same in CKEditor.
Thanks in advance....
with regards,
Rahul
I found threads describing how to do the same in FCKeditor.
How can I do the same in CKEditor.
Thanks in advance....
with regards,
Rahul

Re: Is there a way to reset the undo history in CKEditor?
That will reset the undo stack for you.
Re: Is there a way to reset the undo history in CKEditor?
Just to make the answer even nicer for you; a simple plugin similar to this may do the trick :
CKEDITOR.plugins.add( 'test', { init : function( editor ) { editor.on( 'setData', function(e) { editor.resetUndo(); }); } });Thanks,
Zanpakutō