TinyMCE: How to display all toolbars on a single row?

后端 未结 4 902
小鲜肉
小鲜肉 2020-12-19 08:15

This question is basically reverse of Is there a way to wrap the toolbar buttons to the next row in TinyMCE if the width of the editor is too small?

I have a TinyMCE

4条回答
  •  死守一世寂寞
    2020-12-19 08:52

    Each line of buttons is wrapped in a table so theme_advanced_buttons1 is inside a table, theme_advanced_buttons2 is inside another table and theme_advanced_buttons3 is inside another one, so to make them inline you can use

    .wp_themeSkin table.mceToolbar {
      margin: 0 6px 2px; // this is by default
      display: inline-table; // this is extra I've added to keep them in single line
    }
    

    Below is a screenshot of display: inline-table; in full screen mode of the editor, all three lines of buttons are in one line, side by side

    enter image description here

提交回复
热议问题