Skip to content

Commit

Permalink
tell the link picker modal it is created while the Viewer is displayed
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Feb 8, 2023
1 parent d81cd1c commit 5217a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default {
this.$editor.chain().unsetLink().focus().run()
},
linkPicker() {
getLinkWithPicker()
getLinkWithPicker(null, true)
.then(link => {
this.$editor
.chain()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Suggestion/LinkPicker/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5217a6c

Please sign in to comment.