Rich text / foldkit-richtext-dom/editor

EditorDrawing

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

interface EditorDrawing {
  readonly rendering?: RichText.Rendering | undefined
  readonly decorate?: Decorate | undefined
  readonly placeholder?: string | undefined
  readonly lineHint?: string | undefined
  readonly nodes?: RichText.NodeRegistry | 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:347

readonly rendering?: RichText.Rendering | undefined

EditorDrawing.decorate

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

readonly decorate?: Decorate | undefined

EditorDrawing.placeholder

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

readonly placeholder?: string | undefined

What a blank document shows.

EditorDrawing.lineHint

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

readonly lineHint?: string | undefined

What the empty paragraph the caret is in shows.

EditorDrawing.nodes

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

readonly nodes?: RichText.NodeRegistry | undefined

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