Rich text / foldkit-richtext-dom
Handle editor Messages
foldkit-richtext-dom/editor defines the Message union handled by the editor Bundle:
- Typing and marks:
Typed,Backspace,DeletedForward,Entered,ToggledMark,AppliedMark,ClearedMark,Pasted,Selected - Blocks and tables:
RetypedBlock,WrappedBlock,ConvertedBlock,LiftedBlock,MovedBlock,InsertedBlock,DeletedBlock,ChangedProps,InsertedRow,InsertedColumn,DeletedRow,DeletedColumn,Indented,Outdented - Search, footnotes, and chrome:
ReplacedText,InsertedFootnote,RenamedFootnote,ActivatedAdornment,DismissedSlash - History and patching:
Undone,Redone,Patched
Built-in keyboard chords dispatch Mod+B (Bold), Mod+I (Italic), Mod+E (Code), Mod+Shift+S (Strikethrough), and Mod+Z / Mod+Shift+Z / Mod+Y (undo/redo), while Tab / Shift+Tab emit Indented / Outdented only where RichText.takesTab applies (code blocks, lists, and table cells). Controls inside an element carrying data-editor-controls (CONTROLS_ATTRIBUTE from foldkit-richtext-dom/toolbar) preserve text focus on pointer presses unless the target is an input field.