Class: ContentEditHistoryManager

Core. ContentEditHistoryManager

Manages the undo/redo history for content edit operations.

new ContentEditHistoryManager(documentViewer)

Parameters:
Name Type Description
documentViewer Core.DocumentViewer The document viewer instance

Methods


canRedo()

Returns whether a content edit operation is available to redo.
Returns:
Whether an operation can be redone.
Type
boolean

canUndo()

Returns whether a content edit operation is available to undo.
Returns:
Whether an operation can be undone.
Type
boolean

redo()

Reapplies the most recently undone content edit operation.
Returns:
The redone history entry, or null if no operation can be redone.
Type
object | null

undo()

Undoes the most recent content edit operation.
Returns:
The undone history entry, or null if no operation can be undone.
Type
object | null