@liveblocks/react-blocknote
Version:
An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.
22 lines (19 loc) • 590 B
JavaScript
import { useLiveblocksExtension as useLiveblocksExtension$1 } from '@liveblocks/react-tiptap';
const useLiveblocksExtension = (options = {}) => {
const extension = useLiveblocksExtension$1({
...options,
// @ts-expect-error - Hidden config option
textEditorType: "blocknote"
});
extension.config.extendMarkSchema = (mark) => {
if (mark.name === "liveblocksCommentMark") {
return {
blocknoteIgnore: true
};
}
return {};
};
return extension;
};
export { useLiveblocksExtension };
//# sourceMappingURL=BlockNoteLiveblocksExtension.js.map