探索 Tiptap V3 的最新功能

scrollIntoView 命令

scrollIntoView 将视图滚动到当前选择或光标位置。

使用 scrollIntoView 命令

editor.commands.scrollIntoView()