Rich text / foldkit-richtext-dom

Hydrate server-rendered editor markup

<foldkit-richtext> renders display: block inline, and Foldkit hydration preserves custom-element children until the editor mounts. Pass serverRendered: SSR.serving (from foldkit-ssr) to editorAt so the server emits renderEditable(...) HTML and the browser adopts the existing DOM nodes on mount without replacing them:

ts
import * as RichText from 'foldkit-richtext'
import { editorAt } from 'foldkit-richtext-dom/editor-bundle'
import { SSR } from 'foldkit-ssr'

editorAt('body', { rendering: RichText.standardRendering, serverRendered: SSR.serving })

Ensure the browser's initial Model holds the exact Document rendered on the server; otherwise mountInto replaces the mismatched subtree cleanly.