TextEditor

Form

Rich text editor with toolbar, markdown support, formatting controls, and HTML serialization/deserialization

Basic Usage

Controlled Mode

Current HTML:

<p>This is a controlled editor. Type something...</p>

Variants

Sizes

Sticky Toolbar

Read-Only Mode

Disabled State

Rich Content Example

Custom Height

Auto Focus

Width Control

Full Width (Default)

Auto Width

Toolbar Variants

Default Toolbar

Primary Toolbar

Ghost Toolbar

Usage Guidelines

When to Use

  • Blog posts
  • Email composition
  • Rich content editing

Accessibility

  • Toolbar keyboard navigation
  • Formatting announced

Performance

  • Lazy toolbar loading
  • Efficient content updates

Common Mistakes

  • All formatting options visible
  • No mobile-friendly toolbar

Frequently Asked Questions

TextEditor is a rich text editor with toolbar, formatting controls, and HTML serialization.
Yes, TextEditor supports markdown input and can output markdown or HTML.

View on GitHub

See the full source code on GitHub