File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -174,19 +174,21 @@ export class BlockNoteTipTapEditor extends TiptapEditor {
174174 dispatchTransaction : this . dispatchTransaction . bind ( this ) ,
175175 state : this . state ,
176176 markViews,
177+ nodeViews : this . extensionManager . nodeViews ,
177178 }
178179 ) ;
179180
180181 // `editor.view` is not yet available at this time.
181- // Therefore we will add all plugins and node views directly afterwards.
182+ // Therefore we will add all plugins directly afterwards.
183+ //
184+ // To research: this is the default tiptap behavior, but might actually not be necessary
185+ // it feels like it's a workaround for plugins that don't account for the view not being available yet
182186 const newState = this . state . reconfigure ( {
183187 plugins : this . extensionManager . plugins ,
184188 } ) ;
185189
186190 this . view . updateState ( newState ) ;
187191
188- this . createNodeViews ( ) ;
189-
190192 // emit the created event, call here manually because we blocked the default call in the constructor
191193 // (https://github.com/ueberdosis/tiptap/blob/45bac803283446795ad1b03f43d3746fa54a68ff/packages/core/src/Editor.ts#L117)
192194 this . commands . focus (
You can’t perform that action at this time.
0 commit comments