TTextareaMode

type
Form & Input

Render mode for OrigamTextareaField — plain keeps the legacy textarea element while rich swaps it for a contenteditable surface with formatting support.

TypeScript

Definition

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

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

plain
Keeps the legacy <textarea> element. The v-model contract is a raw string. No toolbar is rendered.
rich
Swaps the textarea for a contenteditable surface wrapped by the Field shell. The v-model becomes sanitised HTML or Markdown depending on the output prop.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Rich text textarea with toolbar

html