A rich text editor setup for Next.js projects using Tiptap.
npm install @pratush26/tiptap-rte
- In the root layout.tsx import this over the global.css import line
import "@pratush26/tiptap-rte/styles.css"
- Where you want to use the editor, import like this
import { SimpleEditor } from "@pratush26/tiptap-rte"
- Where you want to preview the editor data, import like this
import { SimpleEditorPreview } from "@pratush26/tiptap-rte"
- If you want to use image uploader, then setup a api route /api/upload