File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
assets/vue/components/social Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<BaseCard plain >
3
3
<form >
4
- <BaseInputTextWithVuelidate
4
+ <BaseTinyEditor
5
5
v-model =" content"
6
- :label =" textPlaceholder"
7
- :vuelidate-property =" v$.content"
6
+ :editor-id =" 'content-editor'"
7
+ :required =" true"
8
+ :title =" textPlaceholder"
9
+ :editor-config =" editorConfig"
8
10
class =" mb-2"
9
11
/>
10
12
@@ -56,11 +58,11 @@ import BaseCard from "../basecomponents/BaseCard.vue"
56
58
import BaseButton from " ../basecomponents/BaseButton.vue"
57
59
import BaseFileUpload from " ../basecomponents/BaseFileUpload.vue"
58
60
import BaseCheckbox from " ../basecomponents/BaseCheckbox.vue"
59
- import BaseInputTextWithVuelidate from " ../basecomponents/BaseInputTextWithVuelidate.vue"
60
61
import { useRoute } from " vue-router"
61
62
import { useSecurityStore } from " ../../store/securityStore"
62
63
import socialService from " ../../services/socialService"
63
64
import { useNotification } from " ../../composables/notification"
65
+ import BaseTinyEditor from " ../basecomponents/BaseTinyEditor.vue"
64
66
65
67
const emit = defineEmits ([" post-created" ])
66
68
const securityStore = useSecurityStore ()
@@ -167,4 +169,11 @@ async function sendPost() {
167
169
showErrorNotification (" There was an error creating the post" )
168
170
}
169
171
}
172
+
173
+ // Editor configuration
174
+ const editorConfig = computed (() => ({
175
+ height: 300 ,
176
+ plugins: " link code" ,
177
+ toolbar: " undo redo | formatselect | bold italic | alignleft aligncenter alignright | code" ,
178
+ }))
170
179
</script >
You can’t perform that action at this time.
0 commit comments