@editorcn/editor
@editorcn/block-editor
Toolbar Controls
All available toolbar controls for @editorcn/editor.
The RichTextEditor from @editorcn/editor provides a comprehensive set of toolbar controls. Each control is accessible as a static property on RichTextEditor.
These controls are for the toolbar-style editor (
@editorcn/editor). For the block-style editor, see@editorcn/block-editor.
Text Formatting
| Component | Description |
|---|---|
RichTextEditor.Bold | Bold text |
RichTextEditor.Italic | Italic text |
RichTextEditor.Underline | Underline text |
RichTextEditor.Strikethrough | Strikethrough text |
RichTextEditor.Code | Inline code |
RichTextEditor.CodeBlock | Code block |
RichTextEditor.Highlight | Text highlight |
RichTextEditor.Subscript | Subscript text |
RichTextEditor.Superscript | Superscript text |
RichTextEditor.ClearFormatting | Remove all formatting |
Headings
| Component | Description |
|---|---|
RichTextEditor.H1 | Heading 1 |
RichTextEditor.H2 | Heading 2 |
RichTextEditor.H3 | Heading 3 |
RichTextEditor.H4 | Heading 4 |
RichTextEditor.H5 | Heading 5 |
RichTextEditor.H6 | Heading 6 |
Lists & Blocks
| Component | Description |
|---|---|
RichTextEditor.BulletList | Bullet list |
RichTextEditor.OrderedList | Numbered list |
RichTextEditor.Blockquote | Block quote |
RichTextEditor.Hr | Horizontal rule |
Alignment
| Component | Description |
|---|---|
RichTextEditor.AlignLeft | Align left |
RichTextEditor.AlignCenter | Align center |
RichTextEditor.AlignRight | Align right |
RichTextEditor.AlignJustify | Justify |
Links
| Component | Description |
|---|---|
RichTextEditor.Link | Add/edit link (opens popover) |
RichTextEditor.Unlink | Remove link |
History
| Component | Description |
|---|---|
RichTextEditor.Undo | Undo |
RichTextEditor.Redo | Redo |