From 5217a6c55e0418c805d9e9be44e8510dbe3b16fd Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 7 Feb 2023 00:14:38 +0100 Subject: [PATCH] tell the link picker modal it is created while the Viewer is displayed Signed-off-by: Julien Veyssier --- src/components/Menu/ActionInsertLink.vue | 2 +- src/components/Suggestion/LinkPicker/suggestions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Menu/ActionInsertLink.vue b/src/components/Menu/ActionInsertLink.vue index 33536a13b0a..f5b76cdb2c1 100644 --- a/src/components/Menu/ActionInsertLink.vue +++ b/src/components/Menu/ActionInsertLink.vue @@ -227,7 +227,7 @@ export default { this.$editor.chain().unsetLink().focus().run() }, linkPicker() { - getLinkWithPicker() + getLinkWithPicker(null, true) .then(link => { this.$editor .chain() diff --git a/src/components/Suggestion/LinkPicker/suggestions.js b/src/components/Suggestion/LinkPicker/suggestions.js index 067aa33443f..e17cff9116a 100644 --- a/src/components/Suggestion/LinkPicker/suggestions.js +++ b/src/components/Suggestion/LinkPicker/suggestions.js @@ -27,7 +27,7 @@ import { searchProvider, getLinkWithPicker } from '@nextcloud/vue-richtext' export default () => createSuggestions({ listComponent: LinkPickerList, command: ({ editor, range, props }) => { - getLinkWithPicker(props.providerId) + getLinkWithPicker(props.providerId, true) .then(link => { editor .chain()