Skip to content

Commit c41c262

Browse files
committed
support tiptap 3
1 parent 91e19d5 commit c41c262

File tree

3 files changed

+614
-604
lines changed

3 files changed

+614
-604
lines changed

example/convex/example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ export const {
3434
let schema: Schema;
3535
// A hack for our demo which uses both BlockNote and Tiptap.
3636
if (id.endsWith("-blocknote")) {
37-
// Parse the snapshot from BlockNote.
38-
const editor = BlockNoteEditor.create({ _headless: true });
37+
// Parse the snapshot from BlockNote in the Convex runtime.
38+
// ServerBlockNoteEditor only works in "use node" in the Convex runtime.
39+
const editor = BlockNoteEditor.create();
3940
schema = editor.pmSchema;
4041
} else {
4142
// Fetching the content from Tiptap, using your extensions.

0 commit comments

Comments
 (0)