Tiptap 中的 deleteSelection 命令旨在选中并移除编辑器中当前选定的任何节点或内容。
deleteSelection 命令删除当前选中的节点。如果没有选区,则不会删除任何内容。
deleteSelection
editor.commands.deleteSelection()