editHistory
editHistory(
historyLimit):EditHistory
Defined in: extensions/commands.ts:431
History extension that overrides the undo/redo behavior of the browser.
Without this extension, the browser’s native undo/redo is used, which can be sufficient in some cases.
Once added to an editor, this extension can be accessed from editor.extensions.history.
If you want to create a new editor with different extensions while keeping the undo/redo history of an old editor, you can! Just add the old editor’s history extension instance to the new editor. Keep in mind that this will fully break the undo/redo behavior of the old editor.
Parameters
Section titled “Parameters”historyLimit
Section titled “historyLimit”number = 999
The maximum size of the history stack. Defaults to 999.