Rich text / foldkit-richtext-dom/host

Vocabulary

interface · packages/richtext-dom/src/host.ts:21

interface Vocabulary {
  readonly marks?: RichText.MarkRegistry | undefined
  readonly nodes?: RichText.NodeRegistry | undefined
}

The vocabulary an editor resolves edits against: the mark and node registries run consults to refuse an edit a declaration forbids (§125). Both are optional, and a field left out leaves run's defaults in place.

Members

Vocabulary.marks

property · packages/richtext-dom/src/host.ts:22

readonly marks?: RichText.MarkRegistry | undefined

Vocabulary.nodes

property · packages/richtext-dom/src/host.ts:23

readonly nodes?: RichText.NodeRegistry | undefined