UndoRedoHandler
Classes
UndoRedoHandler
Handler for performing operations with redoing and undoing of actions.
Remarks
the TextWhizz is used as a text engine.
Implements
Constructors
Constructor
new UndoRedoHandler(tw): UndoRedoHandler;
Parameters
| Parameter | Type |
|---|---|
tw | ITextWhizzHolder |
Returns
Accessors
canRedo
Get Signature
get canRedo(): boolean;
Indicates if the action can be redone.
Returns
boolean
Indicates if the action can be redone.
Implementation of
canUndo
Get Signature
get canUndo(): boolean;
Indicates if the action can be undone.
Returns
boolean
Indicates if the action can be undone.
Implementation of
Methods
clear()
clear(): void;
Clears saving actions.
Returns
void
Implementation of
getSelection()
getSelection(): ITextRange;
Returns selected text.
Returns
Implementation of
pause()
pause(): void;
Pauses saving actions.
Returns
void
Remarks
can be used to combine multiple actions into one.
Implementation of
redo()
redo(): void;
Redoes an action.
Returns
void
Implementation of
resume()
resume(): void;
Resumes saving actions.
Returns
void
Remarks
can be used to combine multiple actions into one.
Implementation of
undo()
undo(): void;
Undoes an action.
Returns
void