Rich Text Editor

qds-rich-text-editor is a form-associated control for concise, structured narrative HTML. It uses a curated toolbar rather than exposing editor-library configuration to consumers.

Use qds-inline-rich-text only inside the QDS content-authoring canvas. That component has a canvas-specific commit event and is not a general-purpose form input.

Usage

<qds-rich-text-editor
  name="summary"
  label="Investment summary"
  placeholder="Write an investment summary…"
  required>
</qds-rich-text-editor>

Attributes

Properties and Methods

Events

CSS Parts

Full Toolbar

The full preset additionally exposes headings, a QDS font dialog, a QDS text color picker, alignment, indentation, superscript, subscript, and code blocks. The font dialog applies its selected family, size, emphasis, and text color to the current selection. Tables, file uploads, embedded media, and footnotes are deliberately not included in this preset.

Form Example

<form>
  <qds-rich-text-editor
    name="committeeSummary"
    label="Committee summary"
    required
    error-text="A committee summary is required.">
  </qds-rich-text-editor>
  <button type="submit">Save</button>
</form>