I have a basic TinyMCE setting, and I'm trying to create a “fluid” toolbar with buttons that go to the next line if the toolbar is too small. I have all the buttons in one table:
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
theme_advanced_buttons1 : "bold,italic,justifyleft,justifycenter,justifyright,justifyfull,"
+"styleselect,formatselect,fontselect,fontsizeselect,bullist,numlist,link,unlink,image,pdw_toggle,"
+"pastetext,pasteword,search,replace,outdent,indent,blockquote,undo,redo,code,forecolor,backcolor,"
+"tablecontrols,hr,removeformat,visualaid,sub,sup,charmap,emotions,media,advhr,print,ltr,rtl,fullscreen,"
+"cite,abbr,acronym,del,ins,attribs,visualchars,nonbreaking,template,blockquote,insertfile,insertimage,underline,strikethrough",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
width: "100%",
height: "400"
});
I tried all kinds of CSS for this, I'm not sure why this will not work:
.mceToolbar tr {
display:block !important;
width:100% !important;
}
.mceToolbar td {
clear:none !important;
display:block !important;
float:left !important;
}
I'm looking for something like this (resize output window): http://jsfiddle.net/vKTcq/
You can experiment with my TinyMCE demo here: http://fiddle.tinymce.com/aecaab/1
I know I did this before using CSS, so I'm sure it is possible - I just can't figure out how to figure it out. Any ideas?