style: update rich text style

This commit is contained in:
wangjiahao
2025-07-21 10:13:01 +08:00
parent dbd4a5e4f9
commit 216949b884
2 changed files with 5 additions and 3 deletions
@@ -6,7 +6,7 @@ defineProps({
type: Array as PropType<number[]>,
required: false,
// eslint-disable-next-line vue/require-valid-default-prop
default: [12, 12, 12, 12],
default: [16, 16, 16, 16],
},
})
@@ -1,8 +1,9 @@
<template>
<div class="rich-main-class" :class="{ 'edit-model': configItem.editing }" draggable="false">
<div
v-if="isDisabled"
draggable="false"
:class="{ 'custom-text-content': true, 'preview-text': true, 'layer-hidden': !isDisabled }"
:class="{ 'custom-text-content': true, 'preview-text': true }"
@keydown.stop
@keyup.stop
@mousedown.stop
@@ -10,10 +11,11 @@
v-html="configItem.propValue"
></div>
<editor
v-else
:id="tinymceId"
v-model="configItem.propValue"
draggable="false"
:class="{ 'custom-text-content': true, 'layer-hidden': isDisabled }"
:class="{ 'custom-text-content': true }"
:init="init"
></editor>
</div>