This object maintains the undo stack for an EditSession.
UndoManager[edit]
Constructors
- new UndoManager()
Resets the current undo state and creates a new UndoManager.
Resets the current undo state and creates a new UndoManager.
Methods
- UndoManager.hasRedo()
Returns true if there are redo operations left to perform.
Returns true if there are redo operations left to perform.
- UndoManager.hasUndo()
Returns true if there are undo operations left to perform.
Returns true if there are undo operations left to perform.
- UndoManager.reset()
- Void
Destroys the stack of undo and redo redo operations.
Destroys the stack of undo and redo redo operations.
Perform an undo operation on the document, reverting the last change. Returns the range of the undo.
Perform an undo operation on the document, reverting the last change. Returns the range of the undo.
Arguments
| dontSelect | Boolean | Required. If true, doesn't select the range of where the change occured |