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

Définition

La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Acceptées

Valeurs

Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.

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.

Écosystème

Utilisé par

Composants et props qui acceptent ce type comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant ce type.

Custom toolbar with a subset of commands

html