## Overview Implement a unified editor canvas that supports both text content and interactive widgets inline, similar to Notion's editing experience. ## Requirements - **Unified canvas**: Single contenteditable container for text and controls - **Inline widgets**: Buttons, dropdowns, and custom components embedded in text flow - **Slash commands**: `/` command system to insert widgets and components - **Unified scrolling**: All content (text + widgets) scrolls together as one document - **Widget persistence**: Save widget state and configuration with content - **Rich interactions**: Widgets can be selected, configured, and manipulated ## Technical Implementation - Enhanced contenteditable system supporting mixed content - Widget component registration system - Slash command modal and insertion logic - Widget serialization for persistence - Drag-and-drop support for widget reordering ## Example Widgets - Task lists with checkboxes - Image galleries - Code blocks with syntax highlighting - Embedded charts or data visualizations - AI chat components - Date pickers and calendars ## User Experience - Type `/` to open widget selection menu - Insert widgets that become part of the document flow - Click widgets to configure or interact - Text flows naturally around and between widgets - Consistent editing experience across text and widgets ## Dependencies - Basic contenteditable TextNode implementation - Component system architecture ## Acceptance Criteria - [ ] Single contenteditable canvas supports mixed text/widget content - [ ] Slash command system functional with widget insertion - [ ] At least 3 basic widget types implemented (task, image, code) - [ ] Widget state persists with document content - [ ] Smooth scrolling and navigation across mixed content - [ ] Widget selection and configuration UI - [ ] Text editing works seamlessly around widgets - [ ] Performance remains good with multiple widgets
Activity
malibio commentedon Dec 5, 2025
Outdated - architecture has changed significantly:
If inline widgets are still desired, a new issue should be created reflecting the current textarea + Svelte 5 architecture.