diff --git a/src/components/Menu/ActionInsertLink.vue b/src/components/Menu/ActionInsertLink.vue index 8723790eae2..8b851ce0aac 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().openLinkPicker().run() }, linkCustomAction() { diff --git a/src/components/Suggestion/suggestions.js b/src/components/Suggestion/suggestions.js index 15dce2403d5..b9af0f078e4 100644 --- a/src/components/Suggestion/suggestions.js +++ b/src/components/Suggestion/suggestions.js @@ -13,6 +13,7 @@ export default ({ }) => ({ items, command, + decorationClass: 'suggestion-query', render: () => { let component let popup diff --git a/src/components/SuggestionsBar.vue b/src/components/SuggestionsBar.vue index 82fc304b9d1..359cb9dd30a 100644 --- a/src/components/SuggestionsBar.vue +++ b/src/components/SuggestionsBar.vue @@ -58,7 +58,6 @@