Commit 5df2240 1 parent 96559d6 commit 5df2240 Copy full SHA for 5df2240
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const props = withDefaults(
26
26
placeholder? : string ;
27
27
id? : string ;
28
28
readOnly? : boolean ;
29
+ editorClass? : string ;
29
30
}>(),
30
31
{
31
32
id: ' vidur-editor' ,
@@ -45,6 +46,11 @@ onMounted(() => {
45
46
content: editorContent .value ,
46
47
extensions: [
47
48
StarterKit .configure ({
49
+ paragraph: {
50
+ HTMLAttributes: {
51
+ class: ' text-sm' ,
52
+ },
53
+ },
48
54
bold: {
49
55
HTMLAttributes: {
50
56
class: ' font-bold' ,
@@ -78,7 +84,7 @@ onMounted(() => {
78
84
3 : ' text-xl' ,
79
85
4 : ' text-lg' ,
80
86
5 : ' text-md' ,
81
- 6 : ' text-base ' ,
87
+ 6 : ' text-sm ' ,
82
88
};
83
89
return [
84
90
` h${level } ` ,
@@ -292,7 +298,7 @@ watchEffect(() => {
292
298
</ToolbarToggleGroup >
293
299
</ToolbarRoot >
294
300
<EditorContent
295
- :class =" readOnly ? '' : ' border-b border-x rounded-b-lg bg-white p-1'"
301
+ :class =" { ' border-b border-x rounded-b-lg bg-white p-1': !readOnly, [editorClass || '']: !!editorClass } "
296
302
:editor
297
303
:disabled =" readOnly"
298
304
/>
You can’t perform that action at this time.
0 commit comments