Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nodes/Image.js6
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?.(),