mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-14 19:05:49 +00:00
feat: replace quill editor with tiptap editor, removes the stupid hack as both editors handle new lines and empty content differently.
Quill adds <p><br></p> for new lines, while Tiptap uses <br> for Shift + Enter and <p> for Enter. This commit fixes this hack I had added, now all editors in Libredesk are tiptap editors. fix: Typography for agent and contact message bubbles and macro preview, as tailwind removes browser defaults. Introduces new class `native-html` for this. fix: removes hardcoded classes in tiptap starter kit configuration as the new class `native-html` takes care of it and has to be just applied. fix: Form validation for automations and macro form. fix: automation list padding between items. feat: adds bullet list and ordered list menu options to tiptap editor.
This commit is contained in:
@@ -108,19 +108,6 @@
|
||||
placeholder="Select tag"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="action.type && config.actions[action.type]?.type === 'richtext'"
|
||||
class="pl-0 shadow"
|
||||
>
|
||||
<QuillEditor
|
||||
v-model:content="action.value[0]"
|
||||
theme="snow"
|
||||
contentType="html"
|
||||
@update:content="(value) => updateValue(value, index)"
|
||||
class="h-32 mb-12"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -139,8 +126,6 @@ import {
|
||||
SelectTrigger,
|
||||
SelectValue
|
||||
} from '@/components/ui/select'
|
||||
import { QuillEditor } from '@vueup/vue-quill'
|
||||
import '@vueup/vue-quill/dist/vue-quill.snow.css'
|
||||
import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar'
|
||||
import { SelectTag } from '@/components/ui/select'
|
||||
import { useTagStore } from '@/stores/tag'
|
||||
|
||||
Reference in New Issue
Block a user