Explorar o código

修复富文本空格和缩进保存后不生效问题&删除重复的placeholder

RuoYi %!s(int64=5) %!d(string=hai) anos
pai
achega
6bd7e183f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ruoyi-ui/src/components/Editor/index.vue

+ 1 - 1
ruoyi-ui/src/components/Editor/index.vue

@@ -66,7 +66,6 @@ export default {
66
       content: this.value,
66
       content: this.value,
67
       uploadImgUrl: "",
67
       uploadImgUrl: "",
68
       editorOption: {
68
       editorOption: {
69
-        placeholder: "",
70
         theme: "snow", // or 'bubble'
69
         theme: "snow", // or 'bubble'
71
         placeholder: "请输入内容",
70
         placeholder: "请输入内容",
72
         modules: {
71
         modules: {
@@ -146,6 +145,7 @@ export default {
146
 
145
 
147
 <style>
146
 <style>
148
 .editor {
147
 .editor {
148
+  white-space: pre-wrap!important;
149
   line-height: normal !important;
149
   line-height: normal !important;
150
   height: 192px;
150
   height: 192px;
151
 }
151
 }