diff --git a/src/EditorFactory.js b/src/EditorFactory.js index af57e08f736..c30371c22c2 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -49,12 +49,13 @@ const loadSyntaxHighlight = async (language) => { } } -const createEditor = ({ language, onCreate, onUpdate = () => {}, extensions, enableRichEditing, session, relativePath }) => { +const createEditor = ({ language, onCreate, onUpdate = () => {}, extensions, enableRichEditing, session, relativePath, isEmbedded = false }) => { let defaultExtensions if (enableRichEditing) { defaultExtensions = [ RichText.configure({ relativePath, + isEmbedded, component: this, extensions: [ Mention.configure({ diff --git a/src/components/Editor.vue b/src/components/Editor.vue index caa2d7727c7..90436699b9a 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -181,6 +181,7 @@ export default { return val }, + inject: ['isEmbedded'], props: { richWorkspace: { type: Boolean, @@ -542,6 +543,7 @@ export default { }), ], enableRichEditing: this.isRichEditor, + isEmbedded: this.isEmbedded, }) this.hasEditor = true if (!documentState && documentSource) { 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 13f3a0f3246..8c6b22fb1ad 100644 --- a/src/components/ViewerComponent.vue +++ b/src/components/ViewerComponent.vue @@ -24,7 +24,7 @@ + :limit="1" + :interactive="!extension.options.isEmbedded" />