Creates the history; the document viewer creates one, available through documentViewer.getContentEditHistoryManager().
OptionaldocViewer: DocumentViewer
The viewer whose content edits are tracked.
Adds a listener for an event. Adding the same function twice for one event has no effect.
Checks whether there is an entry to redo.
true when redo is available.
Checks whether there is an entry to undo.
true when undo is available.
Merges the latest count entries into one (such as creating a paragraph + writing its content, or all replacements of one find and replace); returns the entry.
Returns a snapshot of the logical undo and redo entry counts; native commands inside composite entries are not counted separately.
Number of entries that can be redone.
Number of entries that can be undone.
Redoes the latest undone entry; does nothing when there is none. Fires undoRedoStatusChanged.
Removes every listener of every event.
Undoes the latest entry; does nothing when there is none. Fires undoRedoStatusChanged.
Undo and redo history of content editing, separate from the annotation history.