Rich text editor
A small contenteditable editor with a formatting toolbar, markdown shortcuts, a link popover, plain-text paste, a word count and HTML plus markdown output, without execCommand.
Preview
Markdown works: # heading, - list, **bold**, `code`0 words
Markdown out
## Release notes · v4.2
Seat-based pricing is live for **every workspace**. Annual plans now show the saving in dollars, not percent.
- Usage meters on the billing page
- Webhook retries with `exponential backoff`
- Dark mode for the status page
> Thanks to the 212 beta workspaces who tried it first.
Read the [migration guide](#migration) before switching plans.Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| defaultValue | string | "" | Initial HTML using p, h2, ul/ol/li, blockquote, pre, strong, em, code and a. |
| onValueChange | (value: { html, markdown, text, words }) => void | — | Called on input, toolbar actions and blur. |
| placeholder | string | "Write something…" | Shown while the editor is empty. |
| label | string | "Editor" | Accessible name of the text area. |
| minHeight | number | 160 | Minimum height of the writing area in px. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
