UNPKG

@blocknote/react

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

17 lines (13 loc) 558 B
import { BlockNoteSchema, defaultStyleSpecs } from "@blocknote/core"; import { createParagraphBlockSpec } from "@blocknote/core"; // this is quite convoluted. we'll clean this up when we make // it easier to extend / customize the default blocks // remove textColor, backgroundColor from styleSpecs const { textColor, backgroundColor, ...styleSpecs } = defaultStyleSpecs; // the schema to use for comments export const defaultCommentEditorSchema = BlockNoteSchema.create({ blockSpecs: { paragraph: createParagraphBlockSpec(), }, styleSpecs, });