UNPKG

@liveblocks/react-blocknote

Version:

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

21 lines (18 loc) 543 B
import { useLiveblocksExtension as useLiveblocksExtension$1 } from '@liveblocks/react-tiptap'; const useLiveblocksExtension = (options = {}) => { const extension = useLiveblocksExtension$1({ ...options, textEditorType: "blocknote" }); extension.config.extendMarkSchema = (mark) => { if (mark.name === "liveblocksCommentMark") { return { blocknoteIgnore: true }; } return {}; }; return extension; }; export { useLiveblocksExtension }; //# sourceMappingURL=BlockNoteLiveblocksExtension.js.map