Comments plugin for blocknote editor.
npm install @defensestation/blocknote-comments!Stability Badge

Comments feature for Blocknote.

A demo is worth a thousand words
Get the package
``shell`
$ yarn add @defensestation/blocknote-comments
Include module at your application
`javascript`
import {
commentStyleSpec,
CommentToolbarController,
CreateCommentButton,
} from "@defensestation/blocknote-comments";
Create schema with comment style spec.
`javascript`
const schema = BlockNoteSchema.create({
styleSpecs: {
// Adds all default styles.
...defaultStyleSpecs,
comment: commentStyleSpec,
},
});
Add comment button in toolbar.
`javascript`
const CustomToolbar = () => (
)}
/>)
Add comment controller.
`javascript``