探索 Tiptap V3 的最新功能

selectParentNode 命令

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

使用 selectParentNode 命令

editor.commands.selectParentNode()