Class: ContentEditHistoryManager

Core. ContentEditHistoryManager

A manager class that manage the history of content edits.

new ContentEditHistoryManager()

Provides methods for adding history, undoing, and redoing edits.

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.