Quickly integrate Notion-like editors and enable collaboration
To accomplish this, the following steps need to be followed:
- Sign up for a Tiptap account and subscribe to the Start program to upload a private GitHub repository to get the template code.
- After installing the dependency package using npm, configure the collaboration token in the .env file:
TIPTAP_COLLAB_TOKEN=your_token
- You need to specify the collaboration room ID when initializing the editor:
<NotionEditor room="document-001" />
- After running the project, multiple people accessing documents with the same room_ID can see each other's cursors and edits in real time.
Key points: you must use the Tiptap Cloud service or a self-hosted Hocuspocus server to handle editing conflicts, and a free trial version is available to test the basic collaboration features.
This answer comes from the articleTiptap Notion-like Template: Fast Integration of Notion-like Collaboration EditorThe