Skip to content

Commit

Permalink
use all RichText related components/functions from @nextcloud/vue
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Mar 9, 2023
1 parent 5049358 commit fe59de5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
30 changes: 0 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@nextcloud/moment": "^1.2.1",
"@nextcloud/router": "^2.0.1",
"@nextcloud/vue": "^7.8.0",
"@nextcloud/vue-richtext": "^2.0.4",
"@quartzy/markdown-it-mentions": "^0.2.0",
"@tiptap/core": "^2.0.0-beta.209",
"@tiptap/extension-blockquote": "^2.0.0-beta.209",
Expand Down
6 changes: 3 additions & 3 deletions src/nodes/ParagraphView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<template>
<NodeViewWrapper class="vue-component" as="p">
<NodeViewContent class="paragraph-content" />
<ReferenceList v-if="text"
<NcReferenceList v-if="text"
:text="text"
:limit="1"
contenteditable="false" />
Expand All @@ -32,7 +32,7 @@

<script>
import { NodeViewContent, nodeViewProps, NodeViewWrapper } from '@tiptap/vue-2'
import { ReferenceList } from '@nextcloud/vue-richtext'
import { NcReferenceList } from '@nextcloud/vue/dist/Components/NcRichText.js'
import debounce from 'debounce'

import '@nextcloud/vue-richtext/dist/style.css'
Expand All @@ -42,7 +42,7 @@ export default {
components: {
NodeViewWrapper,
NodeViewContent,
ReferenceList,
NcReferenceList,
},
props: nodeViewProps,
data() {
Expand Down

0 comments on commit fe59de5

Please sign in to comment.