fix(projects): wangEditor在暗黑模式下的背景色问题

This commit is contained in:
Yanbowen 2021-11-09 17:48:25 +08:00
parent 60c20647a0
commit a7de314045

View File

@ -1,7 +1,7 @@
<template>
<div>
<n-card title="富文本插件" class="shadow-sm rounded-16px">
<div ref="domRef"></div>
<div ref="domRef" class="dark:bg-dark"></div>
<template #footer>
<github-link link="https://github.com/wangeditor-team/wangEditor" />
</template>
@ -32,4 +32,11 @@ onMounted(() => {
renderWangEditor();
});
</script>
<style scoped></style>
<style scoped>
:deep(.w-e-text-container) {
background: inherit;
}
:deep(.w-e-toolbar) {
background: inherit !important;
}
</style>