Namespace | tinymce |
Class | UndoManager |
Method | Defined By |
---|---|
add(l:Object):Object
Adds a new undo level/snapshot to the undo list.
|
UndoManager |
beforeChange():void
Stores away a bookmark to be used when performing an undo action so that the selection is before the change has been mad...
|
UndoManager |
clear():void
Removes all undo levels.
|
UndoManager |
hasRedo():Boolean
Returns true/false if the undo manager has any redo levels.
|
UndoManager |
hasUndo():Boolean
Returns true/false if the undo manager has any undo levels.
|
UndoManager |
redo():Object
Redoes the last action.
|
UndoManager |
undo():Object
Undoes the last action.
|
UndoManager |
Event | Defined By |
---|---|
onAdd(sender:UndoManager, level:Object)
This event will fire each time a new undo level is added to the undo manager.
|
UndoManager |
onBeforeAdd(sender:UndoManager, level:Object)
This event will fire before a new undo level is added to the undo manager
|
UndoManager |
onRedo(sender:UndoManager, level:Object)
This event will fire when the user make an redo of a change.
|
UndoManager |
onUndo(sender:UndoManager, level:Object)
This event will fire when the user make an undo of a change.
|
UndoManager |
public
function add(l:Object):Object
l:Object | Optional undo level object to add. |
public
function beforeChange():void
public
function clear():void
public
function hasRedo():Boolean
public
function hasUndo():Boolean
public
function redo():Object
public
function undo():Object
public
event onAdd(sender:UndoManager, level:Object)
sender:UndoManager | UndoManager instance that got the new level. |
level:Object | The new level object containing a bookmark and contents. |
public
event onBeforeAdd(sender:UndoManager, level:Object)
sender:UndoManager | UndoManager instance that is going to add the new level |
level:Object | The new level object containing a bookmark and contents |
public
event onRedo(sender:UndoManager, level:Object)
sender:UndoManager | UndoManager instance that got the new level. |
level:Object | The old level object containing a bookmark and contents. |
public
event onUndo(sender:UndoManager, level:Object)
sender:UndoManager | UndoManager instance that got the new level. |
level:Object | The old level object containing a bookmark and contents. |