File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export const defaultNodes = [
8
8
{ name : "BulletList" , path : "@tiptap/extension-bullet-list" } ,
9
9
{ name : "OrderedList" , path : "@tiptap/extension-ordered-list" } ,
10
10
{ name : "ListItem" , path : "@tiptap/extension-list-item" } ,
11
- { name : "CodeBlock" , path : "@tiptap/extension-code-block" } ,
12
11
{ name : "Document" , path : "@tiptap/extension-document" } ,
13
12
{ name : "HardBreak" , path : "@tiptap/extension-hard-break" } ,
14
13
{ name : "Heading" , path : "@tiptap/extension-heading" } ,
Original file line number Diff line number Diff line change @@ -4,3 +4,7 @@ export const lowlightImports = [
4
4
{ name : "createLowlight" , path : "lowlight" } ,
5
5
{ name : "CodeBlockLowlight" , path : "@tiptap/extension-code-block-lowlight" } ,
6
6
] ;
7
+
8
+ export const defaultCodeImports = [
9
+ { name : "CodeBlock" , path : "@tiptap/extension-code-block" } ,
10
+ ] ;
Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ export default defineNuxtModule<ModuleOptions>({
85
85
86
86
if ( ! ! options . lowlight && options . lowlight !== false ) {
87
87
optionalImports = [ ...optionalImports , ...allImports . lowlightImports ] ;
88
+ } else {
89
+ optionalImports = [ ...optionalImports , ...allImports . defaultCodeImports ] ;
88
90
}
89
91
90
92
optionalComponents = [ ...optionalComponents ] ;
@@ -104,6 +106,6 @@ export default defineNuxtModule<ModuleOptions>({
104
106
...transpileModules ,
105
107
] ;
106
108
107
- console . log ( "Tiptap Editor initialized" )
109
+ console . log ( "Tiptap Editor initialized" ) ;
108
110
} ,
109
111
} ) ;
You can’t perform that action at this time.
0 commit comments