UNPKG

@liveblocks/react-blocknote

Version:

An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.

23 lines (19 loc) 551 B
'use strict'; var reactTiptap = require('@liveblocks/react-tiptap'); const useLiveblocksExtension = (options = {}) => { const extension = reactTiptap.useLiveblocksExtension({ ...options, textEditorType: "blocknote" }); extension.config.extendMarkSchema = (mark) => { if (mark.name === "liveblocksCommentMark") { return { blocknoteIgnore: true }; } return {}; }; return extension; }; exports.useLiveblocksExtension = useLiveblocksExtension; //# sourceMappingURL=BlockNoteLiveblocksExtension.cjs.map