# Rich Text Editor

> Rich text editor UX, formatting toolbar, markdown support, block-based editing, and editor patterns.

- Skill: `dragoon0x/rich-text-editor` (Agent Skill)
- Install (CLI): `npx skillmds@latest add dragoon0x/rich-text-editor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dragoon0x/rich-text-editor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: dragoon0x (https://skillmd.com/u/dragoon0x)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/dragoon0x/rich-text-editor

---


# Rich Text Editor Patterns

## Toolbar Design
- **Floating toolbar:** Appears on text selection (medium-style). Clean, minimal.
- **Fixed toolbar:** Always visible at top. Better for heavy editing.
- **Slash commands:** Type "/" to insert blocks. Power user friendly.
- Group tools logically: text formatting | alignment | lists | media | blocks

## Essential Formatting
| Priority | Features |
|----------|----------|
| Must have | Bold, italic, headings (H1-H3), links, lists, images |
| Should have | Code blocks, blockquotes, dividers, tables |
| Nice to have | Callouts, toggles, embeds, colors |
| Avoid | Font family picker, font size picker (use heading levels instead) |

## Block-Based Editing
- Each paragraph, heading, image, etc. is a block
- Blocks can be reordered (drag handle)
- Blocks can be converted (paragraph → heading, list → checklist)
- "/" command to insert new block types
- Block-level actions menu (⋮ button on hover)

## Markdown Support
- Typing shortcuts: `#` for heading, `*` for bold, `>` for quote
- Auto-convert markdown syntax as user types
- Export as markdown option

## Collaboration
- Real-time cursor positions
- Selection highlighting per user
- Comments on specific text ranges
- Version history with visual diff

