Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions example/convex/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export const {
let schema: Schema;
// A hack for our demo which uses both BlockNote and Tiptap.
if (id.endsWith("-blocknote")) {
// Parse the snapshot from BlockNote.
const editor = BlockNoteEditor.create({ _headless: true });
// Parse the snapshot from BlockNote in the Convex runtime.
// ServerBlockNoteEditor only works in "use node" in the Convex runtime.
const editor = BlockNoteEditor.create();
schema = editor.pmSchema;
} else {
// Fetching the content from Tiptap, using your extensions.
Expand Down
Loading
Loading