API reference: @salmonui/rich-text/collab
seedCollaborationDocfunction
import { seedCollaborationDoc } from '@salmonui/rich-text/collab';function seedCollaborationDoc(doc: Y.Doc, html: string, options?: CollaborationHtmlOptions): Promise<void>;
Seeds an empty Y.Doc with HTML (sanitized and parsed through the shared
schema), on the server or by the first client. Seed a doc only once: an
editor bound to a seeded doc renders the doc, not its own value. Loads
the engine on demand, so the /collab entry stays small.