EditorDom.root
property · packages/richtext-dom/src/index.ts:14
readonly root: HTMLElementThe owned subtree root. Everything inside belongs to this interpreter.
Rich text / foldkit-richtext-dom
interface · packages/richtext-dom/src/index.ts:12
interface EditorDom {
readonly root: HTMLElement
readonly elements: ReadonlyMap<RichText.NodeId, HTMLElement>
readonly content: RichText.Document
readonly rendering: RichText.Rendering
readonly decorations: RichText.DecorationSet
}EditorDom.rootproperty · packages/richtext-dom/src/index.ts:14
readonly root: HTMLElementThe owned subtree root. Everything inside belongs to this interpreter.
EditorDom.elementsproperty · packages/richtext-dom/src/index.ts:16
readonly elements: ReadonlyMap<RichText.NodeId, HTMLElement>Current element per block and run identity.
EditorDom.contentproperty · packages/richtext-dom/src/index.ts:18
readonly content: RichText.DocumentThe semantic document this subtree currently represents.
EditorDom.renderingproperty · packages/richtext-dom/src/index.ts:20
readonly rendering: RichText.RenderingThe registry this subtree was rendered with, and is patched with again.
EditorDom.decorationsproperty · packages/richtext-dom/src/index.ts:22
readonly decorations: RichText.DecorationSetThe decorations drawn over it (§129); a patch redraws a run whose share of them changed.