Frage

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?

War es hilfreich?

Lösung

Undo:

editor.execCommand( 'undo' );

Redo:

editor.execCommand( 'redo' );

Reset:

editor.resetUndo();
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top