Skip to content

Commit 9d82207

Browse files
Remove dependency to @nextcloud/vue-richtext
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
1 parent 2e17db7 commit 9d82207

File tree

4 files changed

+3
-153
lines changed

4 files changed

+3
-153
lines changed

package-lock.json

Lines changed: 0 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"@nextcloud/l10n": "^2.0.1",
5353
"@nextcloud/logger": "^2.2.1",
5454
"@nextcloud/router": "^2.0.0",
55-
"@nextcloud/vue-richtext": "^2.1.0-beta.6",
5655
"@nextcloud/vue-select": "^3.21.2",
5756
"@skjnldsv/sanitize-svg": "^1.0.2",
5857
"clone": "^2.1.2",

src/components/NcRichContenteditable/NcRichContenteditable.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ import NcAutoCompleteResult from './NcAutoCompleteResult.vue'
148148
import richEditor from '../../mixins/richEditor/index.js'
149149
import Tooltip from '../../directives/Tooltip/index.js'
150150
import { emojiSearch, emojiAddRecent } from '../../functions/emoji/index.js'
151-
import { linkProviderSearch, getLink } from '../../functions/linkPicker/index.js'
151+
import { searchProvider, getLinkWithPicker } from '../NcRichText/index.js'
152152
153153
import Tribute from 'tributejs/dist/tribute.esm.js'
154154
import debounce from 'debounce'
@@ -300,7 +300,7 @@ export default {
300300
noMatchTemplate: () => t('No link provider found'),
301301
selectTemplate: this.getLink,
302302
// Pass the search results as values
303-
values: (text, cb) => cb(linkProviderSearch(text)),
303+
values: (text, cb) => cb(searchProvider(text)),
304304
// Class added to the menu container
305305
containerClass: 'tribute-container-link',
306306
// Class added to each list item
@@ -423,7 +423,7 @@ export default {
423423
getLink(item) {
424424
// there is no way to get a tribute result asynchronously
425425
// so we immediately insert a node and replace it when the result comes
426-
getLink(item.original.id)
426+
getLinkWithPicker(item.original.id)
427427
.then(link => {
428428
// replace dummy temp element by a text node which contains the link
429429
const tmpElem = document.getElementById('tmp-link-result-node')

src/functions/linkPicker/index.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)