Parcourir la source

设置wangEditor高度

hwb0 il y a 3 ans
Parent
commit
46b0a5647b
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/components/WangEditor/index.vue

+ 2 - 2
src/components/WangEditor/index.vue

@@ -31,7 +31,6 @@ export default {
       this.editor.config.onchange = (newHtml) => {
         this.$emit("input", newHtml);
       };
-      this.editor.config.placeholder = "请输入回答";
       // 编辑器不需要的菜单
       this.editor.config.excludeMenus = ["emoticon", "video", "code"];
       this.editor.config.showLinkImg = false; //关闭网络路径图片方式
@@ -52,6 +51,7 @@ export default {
       this.editor.config.zIndex = 0;
       // 创建编辑器
       this.editor.create();
+      this.editor.$textContainerElem.css("height", "700px !important"); //设置高
     },
 
     setContent(val) {
@@ -72,5 +72,5 @@ export default {
   },
 };
 </script>
-<style>
+<style scoped>
 </style>