-
-
Notifications
You must be signed in to change notification settings - Fork 48
feat: Integrate Tiptap for rich text editing and enhance NoteEditor with a new toolbar #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Integrate Tiptap for rich text editing and enhance NoteEditor with a new toolbar #31
Conversation
…ith a new toolbar
|
Someone is attempting to deploy a commit to the Dhanush Nehru's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates Tiptap rich text editor to replace the basic textarea in the notes app, providing WYSIWYG editing capabilities with formatting options like bold, italic, underline, headings, lists, and text alignment.
- Replaces the simple textarea with a comprehensive rich text editor using Tiptap
- Adds a formatting toolbar with visual buttons and keyboard shortcuts
- Updates the note preview to strip HTML tags for clean text display
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds Tiptap editor dependencies and extensions |
| tailwind.config.ts | Updates Tailwind configuration to support typography plugin |
| src/components/editor-styles.css | Defines custom CSS styles for the Tiptap editor |
| src/components/RichTextToolbar.tsx | Creates the formatting toolbar component with buttons and tooltips |
| src/components/NoteEditor.tsx | Replaces textarea with Tiptap editor and integrates the toolbar |
| src/components/NoteCard.tsx | Adds HTML stripping function for plain text preview |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Removed the unnecessary blank line at the end of the file
removed unused dependencies Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
using DOMParser strip HTML tags Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
resolve the conflicts |
|
Resolve merge conflicts @prakash601 |
This pull request adds rich text editing capabilities to the notes app, allowing users to format their notes with bold, italic, underline, headings, lists, and text alignment options. The implementation uses Tiptap, a modern WYSIWYG editor, providing an intuitive editing experience.
Changes Made
New Features
WYSIWYG Rich Text Editor: Real-time formatting without syntax
Formatting Toolbar: Visual toolbar with formatting options
Keyboard Shortcuts:
Ctrl/Cmd + B- BoldCtrl/Cmd + I- ItalicCtrl/Cmd + U- UnderlineActive State Indicators: Buttons highlight when formatting is active
Text Formatting Options:
Bold formatting works (button and Ctrl+B)
Italic formatting works (button and Ctrl+I)
Underline formatting works (button and Ctrl+U)
Heading 1 and 2 work correctly
Bullet and numbered lists function properly
Text alignment (left, center, right) works
Active state indicators highlight correctly
Auto-save functionality works
Notes persist after page reload
Sidebar preview shows clean text
No console errors
Closes #8