EditorPlacement.rendering
property · packages/richtext-dom/src/editor-bundle.ts:690
readonly rendering?: RichText.Rendering | undefinedHow this editor's marks and node kinds render (§121). Defaults to noRendering.
Rich text / foldkit-richtext-dom/editor-bundle
interface · packages/richtext-dom/src/editor-bundle.ts:688
interface EditorPlacement {
readonly rendering?: RichText.Rendering | undefined
readonly vocabulary?: Vocabulary | undefined
readonly inputRules?: ReadonlyArray<RichText.InputRule> | undefined
readonly decorate?: Decorate | undefined
readonly placeholder?: string | undefined
readonly lineHint?: string | undefined
readonly slashEntries?: ReadonlyArray<SlashEntry<EditorEvent>> | undefined
readonly serverRendered?: (() => boolean) | undefined
}What a placement gives its editor. Each is placed by host id rather than passed as an arg (§122): each holds functions or schemas, which a schema-decoded arg cannot describe.
EditorPlacement.renderingproperty · packages/richtext-dom/src/editor-bundle.ts:690
readonly rendering?: RichText.Rendering | undefinedHow this editor's marks and node kinds render (§121). Defaults to noRendering.
EditorPlacement.vocabularyproperty · packages/richtext-dom/src/editor-bundle.ts:692
readonly vocabulary?: Vocabulary | undefinedThe vocabulary its edits resolve against (§125). Defaults to none.
EditorPlacement.inputRulesproperty · packages/richtext-dom/src/editor-bundle.ts:694
readonly inputRules?: ReadonlyArray<RichText.InputRule> | undefinedThe rules applied to what is typed (§128). Defaults to none.
EditorPlacement.decorateproperty · packages/richtext-dom/src/editor-bundle.ts:699
readonly decorate?: Decorate | undefinedWhat is drawn over the document (§129), derived from it on every patch: code highlighting, for one. Defaults to nothing.
EditorPlacement.placeholderproperty · packages/richtext-dom/src/editor-bundle.ts:701
readonly placeholder?: string | undefinedWhat the editor shows while its document is blank (RichText.isBlank). Defaults to none.
EditorPlacement.lineHintproperty · packages/richtext-dom/src/editor-bundle.ts:706
readonly lineHint?: string | undefinedWhat the empty paragraph the caret is in shows, such as "Type / for blocks", as
data-hint on it. Defaults to none.
EditorPlacement.slashEntriesproperty · packages/richtext-dom/src/editor-bundle.ts:712
readonly slashEntries?: ReadonlyArray<SlashEntry<EditorEvent>> | undefinedWhat its slash menu offers, which Enter resolves against: an application's own entries
(an image, a table, a callout) beside or instead of slashEntries. The application's menu
view draws the same list. Defaults to slashEntries.
EditorPlacement.serverRenderedproperty · packages/richtext-dom/src/editor-bundle.ts:718
readonly serverRendered?: (() => boolean) | undefinedWhether this render is the server's (§145), such as foldkit-ssr's SSR.serving. While it
is, the host carries the document's markup, which the browser's editor adopts instead of
drawing again. Defaults to never, so the host is empty until the editor mounts.