How to Add a Rich Text Editor to a shadcn/ui App with editorcn
shadcn/ui offers many UI components but lacks a rich text editor, which developers often build by hand around Tiptap. The editorcn project fills this gap with Tiptap-based editors installed through the shadcn CLI and styled to match shadcn theme tokens. Its source code is copied into the project, so developers can customize the toolbar, labels, and styles directly. The guide walks through registering the registry in components.json, installing the editor, and rendering it in a Next.js page with the required client-component and hydration settings. Additional Tiptap extensions such as text alignment can be added alongside matching toolbar controls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in