TinyMCE:API/tinymce.UndoManager

From Moxiecode Documentation Wiki

Jump to: navigation, search

Class: tinymce.UndoManager

This class handles the undo/redo history levels for the editor. Since the built in undo/redo has major drawbacks a custom one was needed.

Constructor

UndoManager
Constructs a new UndoManager instance.

Methods

add
Adds a new undo level/snapshot to the undo list.
clear
Removes all undo levels.
hasRedo
Returns true/false if the undo manager has any redo levels.
hasUndo
Returns true/false if the undo manager has any undo levels.
redo
Redoes the last action.
undo
Undoes the last action.
Personal tools