Used internally by TextEditor to manage the history of undo and redo actions.

Constructor

new(textEditor:TextEditor)

Creates a new UndoManager object.

Variables

@:flash.propertyread onlyedited:Bool

Indicates if the file is currently edited since it was last saved.

Methods

clear():Void

Clears all undo and redo actions.

redo():Void

Performs a redo action, if any are available.

save():Void

Marks the position in the undo stack where the file was last saved.

undo():Void

Performs an undo action, if any are available.