diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nodes/Image.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodes/Image.js b/src/nodes/Image.js index 78470f670..14410189a 100644 --- a/src/nodes/Image.js +++ b/src/nodes/Image.js @@ -29,6 +29,12 @@ const Image = TiptapImage.extend({ selectable: false, + renderHTML() { + // Avoid the prosemirror node creation to trigger image loading as we use a custom node view anyways + // Otherwise it would attempt to load the image from the current location before the node view is even initialized + return ['img'] + }, + addOptions() { return { ...this.parent?.(), |