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 ec01bdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 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
8 changes: 3 additions & 5 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,17 +32,15 @@

<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'

export default {
name: 'ParagraphView',
components: {
NodeViewWrapper,
NodeViewContent,
ReferenceList,
NcReferenceList,
},
props: nodeViewProps,
data() {
Expand Down

0 comments on commit ec01bdc

Please sign in to comment.