Simple Editor

Free

A lightweight rich text editor with essential formatting options. Perfect for basic content editing needs with a clean and intuitive interface.

Installation

Install via CLI

npx @moontra/moonui-cli add simple-editor

Usage

Start writing...
0 characters

Examples

Basic Usage

The default editor with its full toolbar — rich text in, HTML string out via onChange

0 characters

Without Toolbar

Hiding the toolbar leaves a plain contenteditable surface, useful for comment boxes where formatting should stay minimal

Start writing...
0 characters

Disabled State

A read-only editor that still renders formatted content but blocks input and greys the toolbar

0 characters

Custom Height

Fixing the height turns the editor into a scrolling region instead of letting it grow with the content

This editor has a custom max height...
0 characters

Form Integration

Wiring the editor into a form: the HTML value is held in state and submitted alongside the other fields

Describe your product...
0 characters

With Initial Content

Seeding the editor with existing HTML — the usual shape when editing a saved record rather than composing from scratch

0 characters