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 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ export const tiptapExtensions = [
|
|||||||
heading: {},
|
heading: {},
|
||||||
}),
|
}),
|
||||||
Image.configure({
|
Image.configure({
|
||||||
inline: true,
|
inline: false,
|
||||||
}),
|
}),
|
||||||
Link.configure({
|
Link.configure({
|
||||||
openOnClick: false,
|
openOnClick: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user