@witchcraft/editor
    Preparing search index...
    • Wire the shared fragment/binding to a document: register the fragment observer that keeps the cached state in sync with remote changes. Called once per document by createCollaborationPlugins.

      Parameters

      • bridge: Bridge

        the shared per-doc bridge

      • opts: {
            docId: string;
            documentApi: CollabDocumentApi;
            enableContentCheck?: boolean;
            getConnectedEditors?: () => any[];
            onContentError?: (
                error: Error,
                context: { docId: string; fragment: YXmlFragment; yDoc: Doc },
            ) => "block" | undefined;
            schema: unknown;
        }

      Returns void