A simple reference implementation for integrating TipTap editor in React projects with custom extensions.
npm install
npm run dev
Visit http://localhost:3000 to see the editor in action.
This project showcases TipTap editor with various extensions and custom implementations:
- Basic Formatting - Bold, italic, underline, strikethrough
- Text Styles - Headings and paragraphs
- Text Alignment - Left, center, right, justify
- Lists - Bullet and ordered lists
- Colors - Text color and highlight
- Links - Inline link editing
- Images - Image upload with resizing and captions
- Code Blocks - Code formatting
- Blockquotes - Blockquotes
- Tables - Advanced tables with bubble menu for row/column management
- Bubble Menus - Context-aware menus for text, images, and tables
- PDF Export - Export editor content to PDF with proper formatting
src/
├── components/
│ └── editor/
│ ├── basic/ # Editor button components
│ ├── primitives/ # Reusable toolbar components
│ └── Editor.tsx # Main editor component
├── config/
│ └── editor-config.ts # TipTap extensions configuration
├── lib/
│ ├── export/ # Export utilities (PDF)
│ └── server/ # Server-side PDF generation
├── app/
│ ├── api/export/ # Export API routes
│ └── page.tsx # Demo page
- Next.js 15
- React 19
- TipTap 3
- Tailwind CSS 4
- TypeScript