theme_advanced_buttons_1_n

This option should contain a comma separated list of button/control names to insert into the toolbar. The number 1-n is the row number to insert the buttons/controls into. Below is a list of built-in controls, plugins may include other controls names that can be inserted but these are documented in the individual plugins. This option can only be used when theme is set to advanced and when the theme_advanced_layout_manager option is set to the default value of "SimpleLayout".

Since these rows have items in them by default you need to set them to empty strings "" if you want to completely remove rows. Check the example below.

You may only use theme_advanced_buttons<1-n> once for each value of n where n is a whole number starting with 1 with step 1. If you use the same value for n more than once, the previous lines will be overwritten with the most recent declaration. It should also be noted that a button can oonly be used once in a TinyMCE instance, ie trying to put bold on rows 1 and 2 will cause an error.

A complete reference of all built in buttons and controls can be found in the button/control reference page.

Example of usage of the theme_advanced_buttons<1-n> option:

tinyMCE.init({
...
theme_advanced_buttons1 : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
theme_advanced_buttons2 : "bullist,numlist,separator,outdent,indent,separator,undo,redo,separator",
theme_advanced_buttons3 : "hr,removeformat,visualaid,separator,sub,sup,separator,charmap"
});

Example of how to remove default rows 2 and 3

tinyMCE.init({
...
theme_advanced_buttons1 : "bold,italic,underline",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : ""
});
User Image
  • 2010-12-21 19:17:56

Afraithe

I fixed the link, problem was you trying to make an external link, wiki.moxiecode.com does no longer exist, it just redirects here. But we are going to make some improvements on the Wiki here to it is easier for ppl to edit links etc.

User Image
  • 2010-12-21 19:10:19

ESBertrand

I attempted to fix the "button/control reference" link since it did not appear to be going to the right place; but the link I put in does not seem to be working, either. I am not able to delete my revision, unfortunately. Apologies...