fix(X-Pack): 定时报告-富文本编辑器相关

This commit is contained in:
fit2cloud-chenyw 2024-06-26 16:28:08 +08:00
parent c0a4e554c6
commit 033587e825
2 changed files with 42 additions and 6 deletions

View File

@ -24,11 +24,13 @@ import 'tinymce/plugins/contextmenu' // contextmenu
import 'tinymce/plugins/directionality'
import 'tinymce/plugins/nonbreaking'
import 'tinymce/plugins/pagebreak'
import { propTypes } from '@/utils/propTypes'
const props = defineProps({
modelValue: String
modelValue: String,
inline: propTypes.bool.def(true)
})
const myValue = ref()
const { modelValue } = toRefs(props)
const { modelValue, inline } = toRefs(props)
myValue.value = modelValue
watch(
() => props.modelValue,
@ -69,10 +71,9 @@ const init = ref({
menubar: false,
placeholder: '',
outer_placeholder: '双击输入文字',
inline: true,
branding: false
inline: inline.value,
branding: true
})
tinymce.init({})
</script>
@ -102,4 +103,39 @@ tinymce.init({})
border: none !important;
}
}
.tox {
border-radius: 4px !important;
border-bottom: 1px solid #ccc !important;
z-index: 1000;
}
.tox-tbtn {
height: auto !important;
}
.tox-collection__item-label {
p {
color: #1a1a1a !important;
}
h1 {
color: #1a1a1a !important;
}
h2 {
color: #1a1a1a !important;
}
h3 {
color: #1a1a1a !important;
}
h4 {
color: #1a1a1a !important;
}
h5 {
color: #1a1a1a !important;
}
h6 {
color: #1a1a1a !important;
}
pre {
color: #1a1a1a !important;
}
}
</style>

@ -1 +1 @@
Subproject commit d03ecc9d0d31d2b09caa19afd1e3601b4a4b3f7e
Subproject commit 1073e587ab844d15df1f631902bd59e308234964