diff --git a/src/components/input/AsyncEditor.ts b/src/components/input/AsyncEditor.ts index ca7814407..4196baf57 100644 --- a/src/components/input/AsyncEditor.ts +++ b/src/components/input/AsyncEditor.ts @@ -1,6 +1,5 @@ import {createAsyncComponent} from '@/helpers/createAsyncComponent' -// const Editor = createAsyncComponent(() => import('@/components/input/editor.vue')) const TipTap = createAsyncComponent(() => import('@/components/input/editor/TipTap.vue')) export default TipTap diff --git a/src/components/input/editor.vue b/src/components/input/editor.vue deleted file mode 100644 index 8ab785e5b..000000000 --- a/src/components/input/editor.vue +++ /dev/null @@ -1,378 +0,0 @@ - - - - - diff --git a/src/components/input/editorConfig.ts b/src/components/input/editorConfig.ts deleted file mode 100644 index e50e9aecc..000000000 --- a/src/components/input/editorConfig.ts +++ /dev/null @@ -1,135 +0,0 @@ -import EasyMDE from 'easymde' -import {i18n} from '@/i18n' - -export function createEasyMDEConfig({ placeholder, uploadImage, imageUploadFunction }) { - return { - autoDownloadFontAwesome: false, - spellChecker: false, - placeholder, - uploadImage, - imageUploadFunction, - minHeight: '150px', - sideBySideFullscreen: false, - toolbar: [ - { - name: 'heading-1', - action: EasyMDE.toggleHeading1, - title: i18n.global.t('input.editor.heading1'), - icon: '', - }, - { - name: 'heading-2', - action: EasyMDE.toggleHeading2, - title: i18n.global.t('input.editor.heading2'), - icon: '', - }, - { - name: 'heading-3', - action: EasyMDE.toggleHeading3, - title: i18n.global.t('input.editor.heading3'), - icon: '', - }, - { - name: 'heading-smaller', - action: EasyMDE.toggleHeadingSmaller, - title: i18n.global.t('input.editor.headingSmaller'), - icon: '', - }, - { - name: 'heading-bigger', - action: EasyMDE.toggleHeadingBigger, - title: i18n.global.t('input.editor.headingBigger'), - icon: '', - }, - '|', - { - name: 'bold', - action: EasyMDE.toggleBold, - title: i18n.global.t('input.editor.bold'), - icon: '', - }, - { - name: 'italic', - action: EasyMDE.toggleItalic, - title: i18n.global.t('input.editor.italic'), - icon: '', - }, - { - name: 'strikethrough', - action: EasyMDE.toggleStrikethrough, - title: i18n.global.t('input.editor.strikethrough'), - icon: '', - }, - { - name: 'code', - action: EasyMDE.toggleCodeBlock, - title: i18n.global.t('input.editor.code'), - icon: '', - }, - { - name: 'quote', - action: EasyMDE.toggleBlockquote, - title: i18n.global.t('input.editor.quote'), - icon: '', - }, - { - name: 'unordered-list', - action: EasyMDE.toggleUnorderedList, - title: i18n.global.t('input.editor.unorderedList'), - icon: '', - }, - { - name: 'ordered-list', - action: EasyMDE.toggleOrderedList, - title: i18n.global.t('input.editor.orderedList'), - icon: '', - }, - '|', - { - name: 'clean-block', - action: EasyMDE.cleanBlock, - title: i18n.global.t('input.editor.cleanBlock'), - icon: '', - }, - { - name: 'link', - action: EasyMDE.drawLink, - title: i18n.global.t('input.editor.link'), - icon: '', - }, - { - name: 'image', - action: EasyMDE.drawImage, - title: i18n.global.t('input.editor.image'), - icon: '', - }, - { - name: 'table', - action: EasyMDE.drawTable, - title: i18n.global.t('input.editor.table'), - icon: '', - }, - { - name: 'horizontal-rule', - action: EasyMDE.drawHorizontalRule, - title: i18n.global.t('input.editor.horizontalRule'), - icon: '', - }, - '|', - { - name: 'side-by-side', - action: EasyMDE.toggleSideBySide, - title: i18n.global.t('input.editor.sideBySide'), - icon: '', - }, - { - name: 'guide', - action() { - window.open('https://www.markdownguide.org/basic-syntax/', '_blank') - }, - title: i18n.global.t('input.editor.guide'), - icon: '', - }, - ], - } -} \ No newline at end of file