Tiptap Notion-like Template is a pre-built editor template based on the Tiptap framework, designed to help developers quickly create notion-like templates. Notion collaborative document editor. It provides intuitive React Components for real-time collaboration, AI content generation, and drag-and-drop block editing. With simple configuration, users can integrate a feature-rich, beautiful editor for knowledge base, team collaboration or content creation scenarios in minutes. Templates support dim mode switching, mobile adaptation, and rich formatting options, and are widely used by enterprises such as LinkedIn, GitLab, and Substack, and require a subscription to the Tiptap Start program or higher and configuration of the Tiptap Cloud service.
Function List
- Real-time collaborative editing: Multiple simultaneous editors, displaying user cursor, avatar and online status.
- AI Content Generation: Support for generating, rewriting, or summarizing text, providing custom prompts.
- Drag-and-drop block editing: Adjust text, headings, lists, or blocks of multimedia content by dragging and dropping.
- slash command (computing): Type "/" to quickly insert text, images, videos, code blocks or emoticons.
- dark and light modes: Support light and dark theme switching to suit different user preferences.
- Mobile Adaptation: Toolbars and interfaces automatically adjust to optimize the mobile device experience.
- Rich Text Formatting: Styles such as bold, italic, highlight, link and text color are supported.
- context menu (computing): Each content block provides management functions such as copying, deleting or dragging and dropping.
- Document management: Supports importing and exporting Markdown and DOCX files.
Using Help
Installation process
To use Tiptap Notion-like Templates, register for a Tiptap account and subscribe to the Start program or higher. Below are the detailed steps:
- Sign up and subscribe: Access
cloud.tiptap.dev/register
Create an account and subscribe to the Start program (free trial available). Production environments require a paid subscription. - Get Template: Log in and download the Notion-like Template code by inviting access to the private GitHub repository provided by Tiptap.
- Installation of dependencies: Run the following command in the project directory:
npm install
- Configuring Environment Variables : Create the
.env
file, add the following configuration to enable collaboration and AI features:
TIPTAP_COLLAB_TOKEN=your_collaboration_token
TIPTAP_AI_API_KEY=your_ai_api_key
For more information on how to get the key, please refer to tiptap.dev/docs/hocuspocus
cap (a poem) tiptap.dev/docs/content-ai
The
4. Integrated Styles : The template needs to be accompanied by a CSS framework (e.g. Tailwind CSS). In the index.css
Add a style to the
.tiptap {
font-family: Arial, sans-serif;
padding: 1rem;
}
- Running Projects : Start the development server:
npm run dev
Accessed in a browser localhost:3000
View Editor.
4. CLI installation (optional) : Quickly install the template using the Tiptap CLI:
npx @tiptap/cli add notion-like-editor
Functional operation flow
Real-time collaboration
Real-time collaboration allows multiple people to edit a document at the same time, as follows:
- Initializing the Editor : Introduced in a React project
NotionEditor
Component:
import { NotionEditor } from '@tiptap/react-notion-like-editor';
function App() {
return <NotionEditor room="document-001" />;
}
everyone room
corresponds to a collaborative document.
- View Collaboration Status : The editor displays online user avatars and cursors to synchronize content in real time.
- conflict management : Automatic handling of editorial conflicts through Tiptap Cloud's Hocuspocus server.
AI Content Generation
The AI function helps users to optimize their writing with the following steps:
- Enabling AI : To ensure that
TIPTAP_AI_API_KEY
Configured. - Calling AI Commands : Select the text, click on the AI icon in the toolbar and choose "Generate", "Rewrite" or "Summarize". For example, type "/generate paragraph" to generate new content.
- Customized tips : Enter custom commands in the slash command, such as "/Translate to Chinese" or "/Generate Marketing Copy".
Drag-and-drop block editing
- Insert content block : Enter "/" and select the content type (e.g., title, code block, YouTube video) from the drop-down menu.
- Order of adjustment : Click on the handle to the left of the block and drag to adjust the position.
- management block : Right-click on a block of content to access the context menu for copying, deleting, or formatting resets.
Rich Text Formatting
- Style Adjustment : Select the text and use the toolbar to set bold, italic or highlight.
- (computer) shortcut key : Supports common shortcuts such as
Ctrl+B
Bolding.Ctrl+I
Italics. - context menu (computing) : Right-click on a block of text to adjust the text color or insert a link.
dark and light modes
- Switching Topics : Click on the Theme button in the upper right corner of the editor and choose Bright or Dark mode.
- Customized Themes : Modified in CSS
.tiptap
background color and font style.
caveat
- production environment : Tiptap Cloud or self-hosted Hocuspocus servers need to be configured to ensure stable collaboration functionality.
- Browser Support : Latest versions of Chrome, Firefox, Safari and Edge are supported.
- documentation reference : Regularly check
tiptap.dev/docs
Get updates and best practices. - scalability : Support for adding custom React components, see
tiptap.dev/docs/ui-components
The
application scenario
- Enterprise Knowledge Base
Organizations can use templates to build internal document platforms where team members collaborate in real-time to edit project plans or technical documents, and context menus simplify content management. - Content creation tools
Bloggers or marketing teams can utilize AI features to quickly generate draft articles, and slash commands support embedded multimedia for more engaging content. - Online Education Platform
Teachers and students can create structured notes with support for code blocks and video embedding, suitable for course design or learning records. - Product Prototyping
Developers can integrate templates into the application to quickly add document editing functionality and save development time.
QA
- Need a paid plan?
Yes, Notion-like Template requires a subscription to the Tiptap Start program or higher, and is free to test during the trial period. - What browsers are supported?
The latest versions of Chrome, Firefox, Safari and Edge are supported. - How do I get technical support?
pass (a bill or inspection etc)<a href="mailto:humans@tiptap.dev">humans@tiptap.dev</a>
Contact the team, or join the Discord community. - How is real-time collaboration realized?
This is achieved through the Hocuspocus server in Tiptap Cloud and requires the configuration of a collaboration key. - Can I customize the design?
Yes, there is support for customizing editor styles via CSS or Tailwind CSS. - How are AI features integrated?
Configure the AI API key to enable the Content AI extension, refer to the official documentation. - Does it support adding custom components?
Yes, templates support extending custom React components. - Is it open source?
The Tiptap core editor is MIT licensed and Notion-like Template is a paid template.