---
title: "IUndoRedoHandler | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/IUndoRedoHandler/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# IUndoRedoHandler

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the IUndoRedoHandler module in @aurigma/design-atoms-text.

## Interfaces

### IUndoRedoHandler

Handler for performing operations with redoing and undoing of actions.

#### 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`
