Adds a listener for an event. Adding the same function twice for one event has no effect.
Checks whether there is a step to redo.
true when redo is available.
Checks whether there is a step to undo.
true when undo is available.
Removes all steps. Fires undoRedoStatusChanged when availability changes.
Redoes the latest undone step; does nothing when there is none. On error the history is cleared and the error is thrown.
Removes every listener of every event.
Undoes the latest step; does nothing when there is nothing to undo. On error the page state is uncertain, so history is cleared and the error thrown
Undo and redo history of page operations (insert, delete, move, rotate, merge). Obtain it with
document.getPageHistoryManager().