File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ export class BlockNoteEditor<
920920 }
921921
922922 this . pmSchema . cached . blockNoteEditor = this ;
923- // this.emit("create");
923+ this . emit ( "create" ) ;
924924 }
925925
926926 /**
@@ -948,7 +948,7 @@ export class BlockNoteEditor<
948948 }
949949 const state = this . _tiptapEditor . state ;
950950 const view = this . _tiptapEditor . view ;
951- const dispatch = ( tr : Transaction ) => view ? .dispatch ( tr ) ;
951+ const dispatch = ( tr : Transaction ) => view . dispatch ( tr ) ;
952952
953953 return command ( state , dispatch , view ) ;
954954 }
@@ -1031,7 +1031,7 @@ export class BlockNoteEditor<
10311031 ! activeTr . isGeneric )
10321032 ) {
10331033 // Dispatch the transaction if it was modified
1034- this . _tiptapEditor . view ? .dispatch ( activeTr ) ;
1034+ this . _tiptapEditor . view . dispatch ( activeTr ) ;
10351035 }
10361036
10371037 return result ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function BlockNoteViewComponent<
121121 tableHandles,
122122 comments,
123123 autoFocus,
124- renderEditor = ! editor . headless ,
124+ renderEditor = true ,
125125 ...rest
126126 } = props ;
127127
You can’t perform that action at this time.
0 commit comments