TEXTAREA_TOOLBAR_COMMAND

enum
Form & Input

TypeScript enum for rich-text toolbar command identifiers — bold, italic, link, lists, headings, code, clear-format.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

TEXTAREA_TOOLBAR_COMMAND.BOLD
Toggle bold formatting on the selection.
TEXTAREA_TOOLBAR_COMMAND.ITALIC
Toggle italic formatting on the selection.
TEXTAREA_TOOLBAR_COMMAND.UNDERLINE
Toggle underline formatting on the selection.
TEXTAREA_TOOLBAR_COMMAND.LINK
Insert or edit a hyperlink on the selection.
TEXTAREA_TOOLBAR_COMMAND.LIST_BULLET
Toggle an unordered (bullet) list.
TEXTAREA_TOOLBAR_COMMAND.LIST_ORDERED
Toggle an ordered (numbered) list.
TEXTAREA_TOOLBAR_COMMAND.HEADING_1
Apply heading level 1 to the current block.
TEXTAREA_TOOLBAR_COMMAND.HEADING_2
Apply heading level 2 to the current block.
TEXTAREA_TOOLBAR_COMMAND.HEADING_3
Apply heading level 3 to the current block.
TEXTAREA_TOOLBAR_COMMAND.HEADING
Generic heading command (cycles through heading levels).
TEXTAREA_TOOLBAR_COMMAND.CODE_INLINE
Toggle inline code formatting on the selection.
TEXTAREA_TOOLBAR_COMMAND.CLEAR_FORMAT
Strip all formatting from the selection.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Building a custom toolbar subset

typescript