---
title: "selectParentNode command"
description: "Use the selectParentNode command in Tiptap to move the selection to the parent node. Learn more in our docs!"
canonical_url: "https://tiptap.dev/docs/editor/api/commands/selection/select-parent-node"
---

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