@witchcraft/editor
    Preparing search index...
    • Creates the per-document collaboration plugins, copied from tiptap's collaboration extension with a few minor changes to make it work with our document api.

      Builds the bridge (fragment, binding, undo manager, observer) and returns the per-doc plugin set.

      See useTestDocumentApi for an example of how to use it. Note

      Parameters

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

      Returns Plugin<any>[]