Skip to content

Inline Widgets and Notion-Style Editor Canvas #27

Closed

Description

@malibio

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

  1. malibio commented on Dec 5, 2025

    @malibio
    CollaboratorAuthor

    Outdated - architecture has changed significantly:

    • ContentEditable replaced with textarea-based editing
    • Slash commands partially implemented via different architecture
    • Widget system would need complete redesign for current architecture

    If inline widgets are still desired, a new issue should be created reflecting the current textarea + Svelte 5 architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions