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

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/api/commands/selection/select-all.md)

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