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 {
174
174
dispatchTransaction : this . dispatchTransaction . bind ( this ) ,
175
175
state : this . state ,
176
176
markViews,
177
+ nodeViews : this . extensionManager . nodeViews ,
177
178
}
178
179
) ;
179
180
180
181
// `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
182
186
const newState = this . state . reconfigure ( {
183
187
plugins : this . extensionManager . plugins ,
184
188
} ) ;
185
189
186
190
this . view . updateState ( newState ) ;
187
191
188
- this . createNodeViews ( ) ;
189
-
190
192
// emit the created event, call here manually because we blocked the default call in the constructor
191
193
// (https://github.com/ueberdosis/tiptap/blob/45bac803283446795ad1b03f43d3746fa54a68ff/packages/core/src/Editor.ts#L117)
192
194
this . commands . focus (
You can’t perform that action at this time.
0 commit comments