ITextareaRichActiveState

interface
State & Interaction

Reactive state describing which rich-text toolbar commands are currently active at the caret position. Used by the toolbar to render aria-pressed state and the visual active class.

TypeScript

Définition

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

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

bold
requis
boolean
Whether the bold command is active at the current caret position.
italic
requis
boolean
Whether the italic command is active at the current caret position.
underline
requis
boolean
Whether the underline command is active at the current caret position.
code
requis
boolean
Whether the inline code command is active at the current caret position.
link
requis
boolean
Whether the cursor is inside a link at the current caret position.
listBullet
requis
boolean
Whether the cursor is inside an unordered list.
listOrdered
requis
boolean
Whether the cursor is inside an ordered list.
heading
requis
0 | 1 | 2 | 3
Active heading level at the caret (0 = no heading, 1 = h1, 2 = h2, 3 = h3).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Consuming active state in the toolbar slot

vue