Class: ContentEditHistoryManager

Core. ContentEditHistoryManager

A manager class that manages the history of content edits.

new ContentEditHistoryManager(documentViewer)

Provides methods for adding history, undoing, and redoing edits.
Parameters:
Name Type Description
documentViewer Core.DocumentViewer

Methods


canRedo()

Checks if there are any actions that can be redone.
Returns:
True if there are actions to redo, false otherwise.
Type
boolean

canUndo()

Checks if there are any actions that can be undone.
Returns:
True if there are actions to undo, false otherwise.
Type
boolean

redo()

Redo the most recent action if there are any actions to undo.

undo()

Undo the most recent action if there are any actions to undo.