@@ -21,11 +21,11 @@ import { HTMLToBlocks } from "../api/parsers/html/parseHTML";
2121import { markdownToBlocks } from "../api/parsers/markdown/parseMarkdown" ;
2222import {
2323 DefaultBlockSchema ,
24+ DefaultInlineContentSchema ,
25+ DefaultStyleSchema ,
2426 defaultBlockSchema ,
2527 defaultBlockSpecs ,
26- DefaultInlineContentSchema ,
2728 defaultInlineContentSpecs ,
28- DefaultStyleSchema ,
2929 defaultStyleSpecs ,
3030} from "../blocks/defaultBlocks" ;
3131import { FormattingToolbarProsemirrorPlugin } from "../extensions/FormattingToolbar/FormattingToolbarPlugin" ;
@@ -45,17 +45,17 @@ import {
4545 BlockSchemaFromSpecs ,
4646 BlockSchemaWithBlock ,
4747 BlockSpecs ,
48- getBlockSchemaFromSpecs ,
49- getInlineContentSchemaFromSpecs ,
50- getStyleSchemaFromSpecs ,
5148 InlineContentSchema ,
5249 InlineContentSchemaFromSpecs ,
5350 InlineContentSpecs ,
5451 PartialBlock ,
55- Styles ,
5652 StyleSchema ,
5753 StyleSchemaFromSpecs ,
5854 StyleSpecs ,
55+ Styles ,
56+ getBlockSchemaFromSpecs ,
57+ getInlineContentSchemaFromSpecs ,
58+ getStyleSchemaFromSpecs ,
5959} from "../schema" ;
6060import { mergeCSSClasses } from "../util/browser" ;
6161import { UnreachableCaseError } from "../util/typescript" ;
@@ -371,7 +371,7 @@ export class BlockNoteEditor<
371371 jsonNode . content [ 0 ] . content [ 0 ] . attrs . id = "initialBlockId" ;
372372
373373 cache = Node . fromJSON ( schema , jsonNode ) ;
374- return ret ;
374+ return cache ;
375375 } ;
376376
377377 const root = schema . node (
0 commit comments