---
title: "selectParentNode command"
description: "Use the selectParentNode command in Tiptap to move the selection to the parent node. 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-parent-node.md)

# selectParentNode command

Use the selectParentNode command in Tiptap to move the selection to the parent node. Learn more in our docs!

`selectParentNode` will try to get the parent node of the currently selected node and move the selection to that node.

## Use the selectParentNode command

```js
editor.commands.selectParentNode()
```
