Vito Gentile
Vito Gentile

Reputation: 14366

How to programmatically execute undo and redo in CKEDITOR, and reset their stacks?

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?

Upvotes: 0

Views: 2111

Answers (1)

Reinmar
Reinmar

Reputation: 22023

Undo:

editor.execCommand( 'undo' );

Redo:

editor.execCommand( 'redo' );

Reset:

editor.resetUndo();

Upvotes: 2

Related Questions