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?

有帮助吗?

解决方案

Undo:

editor.execCommand( 'undo' );

Redo:

editor.execCommand( 'redo' );

Reset:

editor.resetUndo();
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top