reactjs - 使用 suneditor toolbarContainer 属性时,为什么工具栏布局混乱,图标很大?
问题描述
为 suneditor 使用自定义工具栏容器时,布局混乱。
<div id='someContainer' />
...
<SunEditor
setOptions={{
toolbarContainer : '#someContainer'
}}
/>
解决方案
工具栏 css 假定它位于类名为“sun-editor”的容器中。因此,请确保自定义容器包含“sun-editor”类名。
<div id='someContainer' class='sun-editor' />
推荐阅读
- regex - 如何匹配下面的 4 位或 5 位数字?
- java - 调用 sum 方法
- javascript - 自动替换 RegEx JavaScript 中的参数
- r - 如何在r中获取数据框中重复值的下一个元素?
- firefox - 之前设置的“Samesite: Strict”cookie 在 document.cookie Firefox 和 Safari 中不可用
- r - 如何根据特定变量的变化删除观察结果?
- sql-server - 搜索以确定一个表中的键值是否永远不会与另一表中的键值匹配
- css - Joomla Jform 单选按钮未与其标签水平对齐
- javascript - 为什么你不能 Array.prototype.pop.call() 一个字符串?
- c++ - 如何在二维数组的末尾添加列和行?