---
title: "IUndoRedoHandler | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IUndoRedoHandler/"
---

# IUndoRedoHandler

> Handler for performing operations with redoing and undoing of actions.

## Interfaces

### IUndoRedoHandler

#### Properties

##### canRedo

```ts
canRedo: boolean;
```

Indicates if the action can be redone.

##### canUndo

```ts
canUndo: boolean;
```

Indicates if the action can be undone.

#### Methods

##### clear()

```ts
clear(): void;
```

Clears saving actions.

###### Returns

`void`

##### getSelection()

```ts
getSelection(): ITextRange;
```

Returns selected text.

###### Returns

[`ITextRange`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextRange.md#itextrange)

##### pause()

```ts
pause(): void;
```

Pauses saving actions.

###### Returns

`void`

###### Remarks

can be used to combine multiple actions into one.

##### redo()

```ts
redo(): void;
```

Redoes an action.

###### Returns

`void`

##### resume()

```ts
resume(): void;
```

Resumes saving actions.

###### Returns

`void`

###### Remarks

can be used to combine multiple actions into one.

##### undo()

```ts
undo(): void;
```

Undoes an action.

###### Returns

`void`
