使用 Tiptap 比较文档
Paid add-on
Tiptap Compare 可以查找并显示两个文档或同一文档两个版本之间的变化。
Tiptap Compare 是无头的:你可以完全控制变化的显示方式和样式。比较本身无需编辑器实例,因此可以部署在客户端或服务器端。
安装
首先,联系我们购买 Compare 附加功能并将其添加到你的计划中。
获得访问权限后,请按照私有注册表指南配置包管理器。
Then, install the package:
npm install @tiptap-pro/compareAdd the Compare extension to the editor that displays the changes between the two documents.
import { Compare } from '@tiptap-pro/compare'
const editor = new Editor({
extensions: [
Compare,
// ...other extensions
],
})使用场景
使用 Tiptap Compare,你可以查找两个文档或同一文档两个版本之间的变化。
获取 Tiptap Compare 访问权限
Compare 是可购买并添加到计划中的附加功能。请联系我们获取访问权限。
联系我们
Trusted by Axios, PostHog, Beehiiv, GitLab and more.