tiptap editor #2222

Merged
konrad merged 66 commits from dpschen/frontend:feature/feat-tiptap-editor into main 2023-10-22 13:49:01 +00:00
5 changed files with 4 additions and 4 deletions
Showing only changes of commit 5297208d92 - Show all commits

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[]>