---
title: "selectAll command"
description: "Use the selectAll command in your Tiptap Editor to select the whole document at once. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/api/commands/selection/select-all"
---

# selectAll command

Use the selectAll command in your Tiptap Editor to select the whole document at once. Learn more in our docs!

Selects the whole document at once.

## Use the selectAll command

```js
// Select the whole document
editor.commands.selectAll()
```
