Hello, I used the admin page of tinytinymce to try to add some new buttons to the simple them but it's not working. How could I change the simple theme buttons? Here is the config I used. Thanks

tinyMCE.init({
mode : "exact",
// elements: "edit-body",
theme : "simple",
plugins : "emotions",
theme_simple_buttons1 : "emotions"
});

Comments

Steve Lockwood’s picture

Status: Active » Fixed

Hi Dani,

You will need to make the simple theme into a "cut down" version of the advanced theme. An init script for the simple theme such as this should work:

tinyMCE.init({
  mode : "exact",
  // elements: "edit-body",
  theme : "advanced",
plugins : "emotions",
theme_advanced_buttons1 : "emotions"
});

This is the same as your script but I have changed "simple" to "advanced"

Steve

daniorama’s picture

Thank you! That worked wonderful!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

fabrizioprocopio’s picture

Sorry to re-open this issue, but I'm not so xp and the informations here is not enough.
I just need to add the -insert image button- to simple mode.

I supposed I have substitute the actual code in the TinyMCE init script for simple mode
with the following code (but I scare to try before you tell me I can):

tinyMCE.init({
mode : "exact",
skin : "o2k7",
language : 'it',
init_instance_callback : "resizeEditorBox",
theme : "advanced"
plugins : "image",
theme_advanced_buttons1 : "image"
});

Some help