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

Definition

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

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

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

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Consuming active state in the toolbar slot

vue