> ## Documentation Index
> Fetch the complete documentation index at: https://dev.marginnote.com.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# UndoManager

> Native instance exported as .

Native instance exported as `UndoManager`.

## Methods

### canRedo()

```typescript
canRedo(): boolean
```

Exported member.

#### Returns

`boolean`

### canUndo()

```typescript
canUndo(): boolean
```

Exported member.

#### Returns

`boolean`

### clearAll()

```typescript
clearAll(): void
```

Exported member.

### redo()

```typescript
redo(): void
```

Exported member.

### undo()

```typescript
undo(): void
```

Exported member.

### undoGrouping()

```typescript
undoGrouping(_actionName: string | null, _topicid: string | null, _block: unknown): void
```

Exported member.

#### Parameters

**\_actionName** `string | null` *required*

**\_topicid** `string | null` *required*

**\_block** `unknown` *required*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.