使用 Tiptap 比较文档

Tiptap Compare 可以查找并显示两个文档或同一文档两个版本之间的变化。

Tiptap Compare 是无头的:你可以完全控制变化的显示方式和样式。比较本身无需编辑器实例,因此可以部署在客户端或服务器端。

安装

首先,联系我们加入 Tiptap Compare 试点计划。

获得访问权限后,请按照私有注册表指南配置包管理器。

Then, install the package:

npm install @tiptap-pro/compare

Add 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,你可以查找两个文档或同一文档两个版本之间的变化。

Get access to Tiptap Compare

Join the pilot program to get early access to Compare and direct input on how it develops. Integrate it successfully with dedicated engineering support via Slack.

Talk to an engineer

Trusted by Axios, PostHog, Beehiiv, GitLab and more.