Resets the current undo state and creates a new UndoManager.
Returns true if there are redo operations left to perform.
Returns true if there are undo operations left to perform.
Returns if the current status is clean
Marks the current status clean
Optionalrev: numberOptionalrev: numberMarks the current status clean
Optionalrev: numberReturns true if there are redo operations left to perform.
Returns true if there are undo operations left to perform.
Takes in an object which was returned from the toJSON method above, and resets the current undoManager instance to use the previously exported instance state.
Optionalto: numberOptionalto: numberOptionalafter: booleanReturns if the current status is clean
Optionalto: number[Perform a redo operation on the document, reimplementing the last change.]{: #UndoManager.redo}
OptionaldontSelect: boolean{:dontSelect}
Destroys the stack of undo and redo redo operations.
Returns an object which can be safely stringified into JSON
[Perform an undo operation on the document, reverting the last change.]{: #UndoManager.undo}
OptionaldontSelect: boolean{:dontSelect}
This object maintains the undo stack for an [[EditSession
EditSession]].