Rich text / foldkit-richtext-dom/editor
patchEditor
function · packages/richtext-dom/src/editor.ts:392
function patchEditor(
hostId: string,
state: RichText.EditorState,
changeSet: RichText.ChangeSet,
): booleanThe patch Command's work: find the element the view gave an id to and sync the attachment it holds. A missing host is not an error — the editor went away while the transition was in flight — so it reports whether it patched.