1
0

feat: move from easymde to tiptap editor (#2222)

Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2222
This commit is contained in:
konrad
2023-10-22 13:48:57 +00:00
28 changed files with 2834 additions and 1380 deletions

View File

@ -15,10 +15,7 @@
<script lang="ts" setup>
import {computed} from 'vue'
import {setupMarkdownRenderer} from '@/helpers/markdownRenderer'
import {marked} from 'marked'
import DOMPurify from 'dompurify'
import {createRandomID} from '@/helpers/randomId'
import {useProjectStore} from '@/stores/projects'
const props = defineProps({
@ -36,7 +33,6 @@ const htmlDescription = computed(() => {
return ''
}
setupMarkdownRenderer(createRandomID())
return DOMPurify.sanitize(marked(description), {ADD_ATTR: ['target']})
return DOMPurify.sanitize(description, {ADD_ATTR: ['target']})
})
</script>

View File

@ -54,7 +54,6 @@
<Editor
:class="{ 'disabled': isLoading}"
:disabled="isLoading"
:previewIsDefault="false"
id="projectdescription"
:placeholder="$t('project.edit.descriptionPlaceholder')"
v-model="project.description"