本教程介绍如何设计一个可切换编辑引擎的编辑器组件。通过适配器模式,我们将具体编辑器的 API 抽象为统一接口,使 UI 组件与编辑器实现解耦。
Tiptap
-
Mar 30, 2026
编辑器菜单栏组件设计文档
-
Mar 20, 2026
在 Tiptap 编辑器中实现 Slash Command 功能
本项目基于 Tiptap 官方 experiment 项目 Slash Commands 重构为 React 版本。
功能概述
本项目实现了一个基于 Tiptap 编辑器的 Slash Command 功能,允许用户在编辑器中输入
/触发命令建议列表,然后选择相应的命令执行操作,如添加标题、设置文本格式等。 -
Slash Commands allow users to trigger actions by typing
/in the editor, displaying a list of available commands. This article will detail how to integrate Slash Commands into a Tiptap editor in Next.js.This tutorial is based on the official Tiptap experiment Slash Commands, originally a Vue implementation ported to React.
-
Tiptap is a popular headless rich text editor built on top of ProseMirror, offering rich functionality and flexible customization capabilities. This article will detail how to integrate the Tiptap editor into a Next.js project.