Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 CKEDITOR 中以编程方式执行撤消和重做?
另一个问题是:有没有办法重置撤消堆栈和重做堆栈?
撤消:
editor.execCommand( 'undo' );
重做:
editor.execCommand( 'redo' );
重置:
editor.resetUndo();