---
title: "selectParentNode 命令"
description: "在 Tiptap 中使用 selectParentNode 命令将选择移动到父节点。更多信息请查看我们的文档！"
canonical_url: "https://tiptap.zhcndoc.com/editor/api/commands/selection/select-parent-node"
---

# selectParentNode 命令

在 Tiptap 中使用 selectParentNode 命令将选择移动到父节点。更多信息请查看我们的文档！

`selectParentNode` 将尝试获取当前选定节点的父节点，并将选择移动到该节点。

## 使用 selectParentNode 命令

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