From f0d5e4e55b924998d70265a97ae0c4bc028a7228 Mon Sep 17 00:00:00 2001 From: xhon-pelushi Date: Wed, 12 Aug 2026 23:54:57 -0400 Subject: [PATCH 1/2] fix: open smart picker inline Fixes #7795 Signed-off-by: xhon-pelushi --- src/components/Menu/ActionInsertLink.vue | 10 ++-------- src/components/SuggestionsBar.vue | 17 ++--------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/src/components/Menu/ActionInsertLink.vue b/src/components/Menu/ActionInsertLink.vue index 8723790eae2..d0e10ab8bd0 100644 --- a/src/components/Menu/ActionInsertLink.vue +++ b/src/components/Menu/ActionInsertLink.vue @@ -91,7 +91,6 @@ import { getMarkAttributes, isActive } from '@tiptap/core' import NcActionButton from '@nextcloud/vue/components/NcActionButton' import NcActionInput from '@nextcloud/vue/components/NcActionInput' import NcActions from '@nextcloud/vue/components/NcActions' -import { getLinkWithPicker } from '@nextcloud/vue/components/NcRichText' import { useFileProps } from '../../composables/useFileProps.ts' import { useLinkFile } from '../../composables/useLinkFile.ts' import { useNetworkState } from '../../composables/useNetworkState.ts' @@ -229,13 +228,8 @@ export default { }, linkPicker() { - getLinkWithPicker(null, true) - .then((link) => { - this.insertLink(link) - }) - .catch((error) => { - logger.error('Smart picker promise rejected', error) - }) + this.menuOpen = false + this.editor?.chain().focus().insertContent('/').run() }, linkCustomAction() { diff --git a/src/components/SuggestionsBar.vue b/src/components/SuggestionsBar.vue index 82fc304b9d1..383d9ee9624 100644 --- a/src/components/SuggestionsBar.vue +++ b/src/components/SuggestionsBar.vue @@ -58,7 +58,6 @@