The editor is the core of this application. It provides a clean and powerful interface for writing and formatting your notes.
It uses a block-based system where every paragraph, heading, or list is a unique element. This makes it easy to format content without complex HTML.
The top navbar provides access to all editing and collaboration tools:
- Bold / Italic / Underline / Strikethrough: Classic text styling.
- Highlighter: Color-coded text highlighting for emphasis.
- Superscript / Subscript: Small text above or below the line.
- Headings: H1, H2, and H3 for organizing content hierarchically.
- Lists:
- Bulleted / Numbered Lists: Standard organization.
- Task Lists: Interactive checklists for task management.
- Quote Blocks: Styled blocks for citations or important notes.
- Code Blocks: Inline code and multi-line code snippets with syntax-style boxes.
- Horizontal Rule: Inserts a separator line to divide sections.
- Text Alignment: Align text or images to Left, Center, Right, or Justify.
- Images:
- Upload Image: Selection from your local computer (stored as Base64 in DB).
- Image from URL: Link to external online assets.
- 7-Image Limit: Enforced per-note to maintain performance.
- Tables:
- Insert dynamic 3x3 tables.
- Add/Delete rows and columns.
- Fully resizable columns.
- Auto-Format ("The Wand"): Instantly cleans up whitespace and typography (
Shift + Alt + F). - AI Assistant: Intelligent writing assistance (Deep Search, Summary, etc.).
- Links: Add or remove hyperlinks to external websites.
- Save: Dedicated save button for manual persistence.
- Undo / Redo: Full history tracking of all document changes.
- Sidebar Toggle: Open/Close the folder management sidebar.
- User Presence: Real-time list of collaborators currently in the note.
- Invite: Button to easily share the note with teammates.
- Dirty State Indicator: Visual cue showing if changes are unsaved.
- Location:
apps/web/components/note-editor.tsxandnote-editor-inner.tsx. - Framework: Built with Tiptap, a popular headless rich-text editor framework.
- Extensions: Includes custom
formatter,Image(block-level),TextAlign,StarterKit,Link,Placeholder, andTaskItem.