wangEditor icon indicating copy to clipboard operation
wangEditor copied to clipboard

设置编辑框的背景颜色不管用

Open longtian66 opened this issue 2 years ago • 1 comments

问题描述

设置编辑框的背景颜色不管用 请输入遇到的问题... 想修改编辑框的背景颜色,尝试了很多不管用

wangEditor 版本

v5 请输入内容…… <Editor defaultConfig={editorConfig} onCreated={setEditor} mode="simple" style={{height:'680px',width:'1660px',transform: 'scale(0.8)',transformOrigin: 'top left', position: 'absolute', backgroundColor:'#0000FF'}} />

是否查阅了文档 ?

(文档链接 www.wangeditor.com

最小成本的复现步骤

(请告诉我们,如何最快的复现该问题?)

  • 步骤一
  • 步骤二
  • 步骤三

longtian66 avatar Nov 16 '23 15:11 longtian66

覆写CSS,使用JS或手动添加CSS为容器增加样式即可。容器为大容器id="editor-container"和内容容器class="w-e-text-container"。

chopinlay avatar Nov 19 '23 02:11 chopinlay