【问题标题】:When using suneditor toolbarContainer property, why is the toolbar layout messed up and the icons huge?使用 suneditor toolbarContainer 属性时,为什么工具栏布局混乱,图标很大?
【发布时间】:2021-06-27 16:20:59
【问题描述】:

为 suneditor 使用自定义工具栏容器时,布局混乱。

<div id='someContainer' />

...

    <SunEditor
       setOptions={{
         toolbarContainer : '#someContainer'
       }}
    />

【问题讨论】:

    标签: reactjs suneditor


    【解决方案1】:

    工具栏 css 假定它位于类名为“sun-editor”的容器中。因此,请确保自定义容器包含“sun-editor”类名。

    <div id='someContainer' class='sun-editor' />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多