feat(editor): move all editor related components into one folder
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
c84bcfddba
commit
5297208d92
@ -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
|
||||
|
@ -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,
|
@ -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'
|
1
src/components/input/editor/types.ts
Normal file
1
src/components/input/editor/types.ts
Normal file
@ -0,0 +1 @@
|
||||
export type UploadCallback = (files: File[] | FileList) => Promise<string[]>
|
Reference in New Issue
Block a user