Skip to content

Commit b5b8cd7

Browse files
committed
fix: render the editor again
1 parent 4a23da2 commit b5b8cd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/src/editor/BlockNoteEditor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

packages/react/src/editor/BlockNoteView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)