Rich text / foldkit-richtext-dom/editor

EditorDrawing

interface · packages/richtext-dom/src/editor.ts:350

interface EditorDrawing {
  readonly rendering?: RichText.Rendering | undefined
  readonly decorate?: Decorate | undefined
  readonly placeholder?: string | undefined
  readonly lineHint?: string | undefined
  readonly label?: string | undefined
  readonly labelledBy?: string | undefined
  readonly nodes?: RichText.NodeRegistry | undefined
  readonly keymap?: ReadonlyArray<KeyBinding> | undefined
}

How an attached editor draws: its rendering registry and what it draws over the document.

Members

EditorDrawing.rendering

property · packages/richtext-dom/src/editor.ts:351

readonly rendering?: RichText.Rendering | undefined

EditorDrawing.decorate

property · packages/richtext-dom/src/editor.ts:352

readonly decorate?: Decorate | undefined

EditorDrawing.placeholder

property · packages/richtext-dom/src/editor.ts:354

readonly placeholder?: string | undefined

What a blank document shows.

EditorDrawing.lineHint

property · packages/richtext-dom/src/editor.ts:356

readonly lineHint?: string | undefined

What the empty paragraph the caret is in shows.

EditorDrawing.label

property · packages/richtext-dom/src/editor.ts:358

readonly label?: string | undefined

The editor's accessible name (EditorName): aria-label or aria-labelledby on its root.

EditorDrawing.labelledBy

property · packages/richtext-dom/src/editor.ts:359

readonly labelledBy?: string | undefined

EditorDrawing.nodes

property · packages/richtext-dom/src/editor.ts:361

readonly nodes?: RichText.NodeRegistry | undefined

The node vocabulary, which says where Tab means something (RichText.takesTab).

EditorDrawing.keymap

property · packages/richtext-dom/src/editor.ts:363

readonly keymap?: ReadonlyArray<KeyBinding> | undefined

Chords beside the built-in ones, checked first (AttachOptions.keymap).