API reference
@salmonui/rich-text/collab
6 exported symbols: 3 functions and 3 interfaces. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/rich-text/collab';Functions
collaborationDocToHtmlSanitized HTML of a Y.Doc (server rendering, persistence, previews with RichTextContent).createCollaborationThe collaboration extension: pass it in extensions (keep it stable, for example in useMemo per doc). It binds the editor to the Y.Doc (ySyncPlugin), shows remo…seedCollaborationDocSeeds 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…
Interfaces
CollaborationHtmlOptionsCollaborationOptionsCollaborationUserThe local user as remote peers see them (cursor label and color).