Undo/redo stack.
Access:
app.history
app.getModule('history')
app.invoke('history.method', …)
canUndo#
Returns whether undo is available (more than baseline snapshot).
Returns: boolean
app.history.canUndo();
canRedo#
Returns whether redo stack has entries.
Returns: boolean
app.history.canRedo();
undo#
Restores previous document snapshot with caret/focus.
Returns: boolean
app.history.undo();
redo#
Restores next document snapshot with caret/focus.
Returns: boolean
app.history.redo();