TTextareaToolbarCommand
type
Form & Input
Identifiers for every rich-text toolbar command — drives the toolbar contract, the format emit payload and the keyboard shortcut map.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Accepted
Values
Accepted string literal values for this type. Click a value to copy it.
- link
- Opens the link editor for the current selection — inserts or edits an anchor tag.
- bold
- Toggles bold on the current selection. Keyboard shortcut: Ctrl/Cmd+B.
- italic
- Toggles italic on the current selection. Keyboard shortcut: Ctrl/Cmd+I.
- underline
- Toggles underline on the current selection. Keyboard shortcut: Ctrl/Cmd+U.
- heading
- Generic heading command — cycles or opens a heading picker depending on toolbar configuration.
- list-bullet
- Wraps the current block in an unordered list item.
- list-ordered
- Wraps the current block in an ordered (numbered) list item.
- heading-1
- Applies H1 block format to the current paragraph.
- heading-2
- Applies H2 block format to the current paragraph.
- heading-3
- Applies H3 block format to the current paragraph.
- code-inline
- Wraps the selection in a <code> span for inline monospace formatting.
- clear-format
- Strips all inline formatting (bold, italic, underline, link, code) from the current selection.
Ecosystem
Used by
Components and props that accept this type as a value.
Usage
Examples
Ready-to-paste code snippets using this type.
Custom toolbar with a subset of commands