opinion
RichTextEditor
A formatting toolbar over an editable region, with HTML in and out.
Project updateBold, lists and links, saved as HTML
In context
Post an updateWriting to the Harbour rebrand channel
MCHarbour rebrandNew update
Props
| Prop | Type | Required | Default |
|---|---|---|---|
value | string | undefined | No | — |
defaultValue | string | undefined | No | |
onValueChange | ((html: string) => void) | undefined | No | — |
placeholder | string | undefined | No | Start typing... |
minHeight | number | undefined | No | 160 |
maxImageBytes | number | undefined | No | 4 * 1024 * 1024 |
data-rebar-* attributes
data-rebar-component="rich-text-editor"; parts: toolbar, content.
Migrating to Ant Design
AntD ships no rich-text editor of its own — its docs point to third-party editors (TinyMCE, Quill, etc.) wrapped in an antd Form.Item. A migration typically keeps this component's own simple formatting or upgrades to one of those dedicated libraries, rather than a 1:1 antd component swap.