How miroapp/quill works
Main Components Structure
a) Core Layer:
• Core components from src/core/:
• Quill (central component)
• Editor
• Selection
• Emitter (event system)
• Composition
• Theme
b) Blots Layer:
• This directly connected to the core
• Inheritance hierarchy:
• ScrollBlot (root)
• BlockBlot
• InlineBlot
• EmbedBlot
• TextBlot
• ContainerBlot
c) Modules Layer:
• As a separate section connecting to the core
• Modules:
• Clipboard
• History
• Keyboard
• Toolbar
• Syntax
• Table
• Uploader
d) Formats Layer:
• Format handlers:
• Text formats (bold, italic, underline)
• Block formats (header, list, blockquote)
• Embeds (image, video, formula)
e) Themes Layer:
• Theme hierarchy:
• Base Theme
• Snow Theme
• Bubble Theme
Interaction Flows
Key interactions:
• Event propagation through Emitter
• Content updates flow:
• User Input → Editor → Delta → DOM
• Module interaction with core
• Format application process
• Theme rendering pipeline
Important Details
• Delta format representation
• DOM interaction layer
• External HTML normalization flow
• Clipboard handling process
• Selection and cursor management
• Event system architecture
Additional Elements
Include:
• Version information
• Key API entry points
• External dependencies
• Build/bundle configuration