1

Topic: Layout of Button Row

Hi,

Since Firefox is becomming more and more of a new serious browser, I've changed from HTMLAREA to TinyMCE as a wysiwyg editor for our CMS. I run into 1 little problem where I can't seem to find a workaround.

I want to change the layout of the button-rows (advanced) and use only the ones that are allowed and put them in 1 row. Using the init settings should do the trick I thought....

But Now using

    theme_advanced_disabled : "strikethrough, bold",

is not working.....

How can I change the button row above the WYSISYG area ?

You'll find me @ The DJ-Resource... !

2

Re: Layout of Button Row

That option should work (worked for me), but you need to use the advanced theme, the simple and default one doesn't support that option.

If it still doesn't work, check the HTML code for the full featured example or send in the init string of yours..

Best regards,
Spocke

Best regards,
Spocke - Main developer of TinyMCE

3

Re: Layout of Button Row

I've done it now with this init call. It places all the functions that I want to use in 1 row.

<!-- tinyMCE -->
<script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
    tinyMCE.init({
        mode : "textareas", 
        theme : "advanced",

        plugins : "advhr,advimage,advlink,emotions,iespell,preview,flash",
        theme_advanced_buttons1_add : "forecolor,bullist,numlist,separator,outdent,indent,separator,link,unlink,separator,image,emotions,charmap,flash,table,hr,separator,cleanup,removeformat,code,iespell,separator,preview,help",
        theme_advanced_toolbar_location : "top",
        theme_advanced_disable : "strikethrough,visualaid,anchor,zoom,table,row_before,row_after,delete_row,separator,col_before,col_after,delete_col,bullist,numlist,outdent,indent,undo,redo,link,unlink,anchor,image,cleanup,help,code,preview,sub,sup,separator,charmap,removeformat,visualaid,hr,formatselect",

        content_css : "../style.css",
        plugin_insertdate_dateFormat : "%Y-%m-%d",
        plugin_insertdate_timeFormat : "%H:%M:%S",
        extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color],hr[class|width|size|noshade]"
    });
</script>
<!-- /tinyMCE -->

There will probably be a better way, but this works for now...

You'll find me @ The DJ-Resource... !