From d3ea1968e5af35f632e96a75c8be85827da39623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Mar 2024 10:52:45 +0100 Subject: [PATCH] fix: Adjust to new preview node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/Link/LinkBubbleView.vue | 1 + src/components/ViewerComponent.vue | 1 - src/extensions/RichText.js | 8 ++++---- src/nodes/Paragraph.js | 6 ------ src/nodes/Preview.js | 1 + src/nodes/Preview.vue | 6 ++++-- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/components/Link/LinkBubbleView.vue b/src/components/Link/LinkBubbleView.vue index e0245c2a7d8..e62bad78354 100644 --- a/src/components/Link/LinkBubbleView.vue +++ b/src/components/Link/LinkBubbleView.vue @@ -73,6 +73,7 @@ ref="referencelist" :text="sanitizedHref" :limit="1" + :interactive="false" :display-fallback="true" class="link-view-bubble__reference-list" @loaded="onReferenceListLoaded" /> diff --git a/src/components/ViewerComponent.vue b/src/components/ViewerComponent.vue index 1279698d54e..8c6b22fb1ad 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -27,7 +27,6 @@ :active="active || isEmbedded" :autofocus="autofocus" :share-token="shareToken" - :is-embedded="isEmbedded" :mime="mime" :show-outline-outside="showOutlineOutside" />
Object.assign(rule, { preserveWhitespace: 'full' })) }, diff --git a/src/nodes/Preview.js b/src/nodes/Preview.js index 94628bda3a0..98eaef15c33 100644 --- a/src/nodes/Preview.js +++ b/src/nodes/Preview.js @@ -38,6 +38,7 @@ export default Node.create({ addOptions() { return { + isEmbedded: false, relativePath: null, } }, diff --git a/src/nodes/Preview.vue b/src/nodes/Preview.vue index 8375fe16341..47626a1b003 100644 --- a/src/nodes/Preview.vue +++ b/src/nodes/Preview.vue @@ -28,8 +28,10 @@ - +