From b208ba4c78fe3293d6f34278137c87717903a65d Mon Sep 17 00:00:00 2001 From: Bo <5675998+foogunlana@users.noreply.github.com> Date: Wed, 11 Mar 2026 09:11:48 +0000 Subject: [PATCH] fix: configure Image extension as block-level to match Docmost's schema The Image extension was configured with `inline: true`, but Docmost's actual editor defines images as block-level nodes (`inline: false, group: "block"`). This mismatch caused `update_page` to silently drop all image nodes during the Yjs merge, since inline image nodes inside paragraphs don't match Docmost's expected block-level image schema. Fixes #4 Co-Authored-By: Claude Opus 4.6 --- src/lib/tiptap-extensions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tiptap-extensions.ts b/src/lib/tiptap-extensions.ts index a8929fc..cc235ba 100644 --- a/src/lib/tiptap-extensions.ts +++ b/src/lib/tiptap-extensions.ts @@ -11,7 +11,7 @@ export const tiptapExtensions = [ heading: {}, }), Image.configure({ - inline: true, + inline: false, }), Link.configure({ openOnClick: false,