Skip to content

Commit 84498ea

Browse files
committed
support tiptap 3
1 parent 1f6c182 commit 84498ea

File tree

3 files changed

+1275
-972
lines changed

3 files changed

+1275
-972
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)