Browse Source

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

RuoYi 4 years ago
parent
commit
6bd7e183f6
1 changed files with 1 additions and 1 deletions
  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 {
       content: this.value,
       uploadImgUrl: "",
       editorOption: {
-        placeholder: "",
         theme: "snow", // or 'bubble'
         placeholder: "请输入内容",
         modules: {
@@ -146,6 +145,7 @@ export default {
 
 <style>
 .editor {
+  white-space: pre-wrap!important;
   line-height: normal !important;
   height: 192px;
 }