Add buttons to simple theme

DaniOrama - October 19, 2008 - 16:13
Project:Tiny Tiny MCE
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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"
});

#1

Steve Lockwood - October 19, 2008 - 17:26
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

#2

DaniOrama - October 19, 2008 - 19:11

Thank you! That worked wonderful!

#3

Anonymous (not verified) - November 2, 2008 - 19:13
Status:fixed» closed

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

#4

fabrizioprocopio - January 27, 2009 - 15:01

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

 
 

Drupal is a registered trademark of Dries Buytaert.