When using a custom toolbar container for suneditor, the layout is messed up.

<div id='someContainer' />

...

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

There are 1 best solutions below

0
On

The toolbar css assumes the it inside a container with class name 'sun-editor'. So ensure the custom container includes the 'sun-editor' class name.

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