From 67e4c131027021e2a3290ffccb73566c2ee70328 Mon Sep 17 00:00:00 2001 From: aleleba Date: Sat, 30 May 2026 20:31:21 -0600 Subject: [PATCH] fix: configure Image extension as block-level to match Docmost's schema Closes #4 When update_page contained images, they were silently dropped because the Image extension was configured with inline: true, but Docmost's editor uses inline: false, group: "block". The Yjs merge discarded mismatched inline image nodes. Fixes PR #5 from the original repo. --- 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,