Skip to main content

IUndoRedoHandler

Interfaces​

IUndoRedoHandler​

Handler for performing operations with redoing and undoing of actions.

Properties​

canRedo​
canRedo: boolean;

Indicates if the action can be redone.

canUndo​
canUndo: boolean;

Indicates if the action can be undone.

Methods​

clear()​
clear(): void;

Clears saving actions.

Returns​

void

getSelection()​
getSelection(): ITextRange;

Returns selected text.

Returns​

ITextRange

pause()​
pause(): void;

Pauses saving actions.

Returns​

void

Remarks​

can be used to combine multiple actions into one.

redo()​
redo(): void;

Redoes an action.

Returns​

void

resume()​
resume(): void;

Resumes saving actions.

Returns​

void

Remarks​

can be used to combine multiple actions into one.

undo()​
undo(): void;

Undoes an action.

Returns​

void

Was this page helpful?