feat(editor): move all editor related components into one folder
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2023-10-21 11:15:07 +02:00
parent c84bcfddba
commit 5297208d92
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
5 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import {createAsyncComponent} from '@/helpers/createAsyncComponent'
// const Editor = createAsyncComponent(() => import('@/components/input/editor.vue'))
const TipTap = createAsyncComponent(() => import('@/components/base/TipTap.vue'))
const TipTap = createAsyncComponent(() => import('@/components/input/editor/TipTap.vue'))
export default TipTap

View File

@ -376,11 +376,10 @@
<script setup lang="ts">
import {ref} from 'vue'
import {Editor} from '@tiptap/vue-3'
import type {UploadCallback} from './types'
import BaseButton from '@/components/base/BaseButton.vue'
export type UploadCallback = (files: File[] | FileList) => Promise<string[]>
const {
editor = null,
uploadCallback,

View File

@ -50,7 +50,7 @@ import {EditorContent, useEditor, VueNodeViewRenderer} from '@tiptap/vue-3'
import {lowlight} from 'lowlight'
import CodeBlock from './CodeBlock.vue'
import type {UploadCallback} from '@/components/base/EditorToolbar.vue'
import type {UploadCallback} from './types'
import type {ITask} from '@/modelTypes/ITask'
import type {IAttachment} from '@/modelTypes/IAttachment'
import AttachmentModel from '@/models/attachment'

View File

@ -0,0 +1 @@
export type UploadCallback = (files: File[] | FileList) => Promise<string[]>