Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use all RichText related components/functions from @nextcloud/vue
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc authored and mejo- committed Mar 2, 2023
commit 5b8e91a6842fc44c5221c085284e94a5cec03caf
2 changes: 1 addition & 1 deletion src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

<script>
import { NcActions, NcActionButton, NcActionInput } from '@nextcloud/vue'
import { getLinkWithPicker } from '@nextcloud/vue-richtext'
import { getLinkWithPicker } from '@nextcloud/vue/dist/Components/NcRichText.js'
import { FilePicker, FilePickerType } from '@nextcloud/dialogs'

import { getMarkAttributes, isActive } from '@tiptap/core'
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 @@ -22,7 +22,7 @@
import createSuggestions from '../suggestions.js'
import LinkPickerList from './LinkPickerList.vue'

import { searchProvider, getLinkWithPicker } from '@nextcloud/vue-richtext'
import { searchProvider, getLinkWithPicker } from '@nextcloud/vue/dist/Components/NcRichText.js'

export default () => createSuggestions({
listComponent: LinkPickerList,
Expand Down
7 changes: 3 additions & 4 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="isLoggedIn && text"
<NcReferenceList v-if="isLoggedIn && text"
:text="text"
:limit="1"
contenteditable="false" />
Expand All @@ -33,16 +33,15 @@
<script>
import { NodeViewContent, nodeViewProps, NodeViewWrapper } from '@tiptap/vue-2'
import { getCurrentUser } from '@nextcloud/auth'
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