@@ -21,11 +21,11 @@ import { HTMLToBlocks } from "../api/parsers/html/parseHTML";
21
21
import { markdownToBlocks } from "../api/parsers/markdown/parseMarkdown" ;
22
22
import {
23
23
DefaultBlockSchema ,
24
+ DefaultInlineContentSchema ,
25
+ DefaultStyleSchema ,
24
26
defaultBlockSchema ,
25
27
defaultBlockSpecs ,
26
- DefaultInlineContentSchema ,
27
28
defaultInlineContentSpecs ,
28
- DefaultStyleSchema ,
29
29
defaultStyleSpecs ,
30
30
} from "../blocks/defaultBlocks" ;
31
31
import { FormattingToolbarProsemirrorPlugin } from "../extensions/FormattingToolbar/FormattingToolbarPlugin" ;
@@ -45,17 +45,17 @@ import {
45
45
BlockSchemaFromSpecs ,
46
46
BlockSchemaWithBlock ,
47
47
BlockSpecs ,
48
- getBlockSchemaFromSpecs ,
49
- getInlineContentSchemaFromSpecs ,
50
- getStyleSchemaFromSpecs ,
51
48
InlineContentSchema ,
52
49
InlineContentSchemaFromSpecs ,
53
50
InlineContentSpecs ,
54
51
PartialBlock ,
55
- Styles ,
56
52
StyleSchema ,
57
53
StyleSchemaFromSpecs ,
58
54
StyleSpecs ,
55
+ Styles ,
56
+ getBlockSchemaFromSpecs ,
57
+ getInlineContentSchemaFromSpecs ,
58
+ getStyleSchemaFromSpecs ,
59
59
} from "../schema" ;
60
60
import { mergeCSSClasses } from "../util/browser" ;
61
61
import { UnreachableCaseError } from "../util/typescript" ;
@@ -371,7 +371,7 @@ export class BlockNoteEditor<
371
371
jsonNode . content [ 0 ] . content [ 0 ] . attrs . id = "initialBlockId" ;
372
372
373
373
cache = Node . fromJSON ( schema , jsonNode ) ;
374
- return ret ;
374
+ return cache ;
375
375
} ;
376
376
377
377
const root = schema . node (
0 commit comments