fix: configure Image extension as block-level to match Docmost's schema #5
Reference in New Issue
Block a user
Delete Branch "foogunlana/fix/image-inline-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #4 —
update_pagesilently drops all images from page content.Bug
When updating a page via the
update_pagetool, all<img>nodes are silently stripped from the content. The resulting page saves successfully but with every image removed.Root Cause
In
src/lib/tiptap-extensions.ts, the TipTapImageextension is configured withinline: true. However, Docmost's editor usesinline: false, group: "block"for its Image extension. When the MCP server merges content into the Yjs document, the schema mismatch causes inline image nodes to be discarded during the Yjs merge — they don't match the expected block-level image node type.Fix
One-line change: set
inline: falsein the Image extension configuration so it matches Docmost's schema.🤖 Generated with Claude Code
Pull request closed