Question

Is there a way to programmatically execute undo and redo in CKEDITOR?

And the other question is: is there a way to reset the undo stack and also the redo stack?

Était-ce utile?

La solution

Undo:

editor.execCommand( 'undo' );

Redo:

editor.execCommand( 'redo' );

Reset:

editor.resetUndo();
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top