I am also interested in this.

In the meantime, as a hack, one can add custom settings by overriding toJavaScript():

TinyMCESettings settings = new TinyMCESettings(TinyMCESettings.Theme.advanced)
   {
     @Override
     public String toJavaScript(boolean ajax)
     {
       StringBuilder s = new StringBuilder();
       s.append("\n\tcontent_css: \"/kc/editor.css\",");
       s.append(super.toJavaScript(ajax));
       return s.toString();
     }
   };

Regards,
Kaspar

On 20.04.2008, at 22:38, Michael Laccetti wrote:

I will take a peek into this to see what can be done.

Mike

-----Original Message-----
From: Zach Cox [mailto:[EMAIL PROTECTED]
Sent: April 20, 2008 3:19 PM
To: [email protected]
Subject: Customize TinyMCE init settings

I'm using the wicket-contrib-tinymce package and need to configure some of
the settings that go into the init JavaScript:

tinyMCE.init({
  //settings from TinyMCESettings.toJavaScript are put here });

Specifically I need to set the content_css setting to get the same styles in the editor as on the rest of the site. Is there any way to customize what goes into that tinyMCE.init call? I can't see any way other than to hack
TinyMCESettings to pieces.

Maybe a public void addInitSetting(String) method would be a good addition
to TinyMCESettings?  There are tons of configuration options
(http://wiki.moxiecode.com/index.php/TinyMCE:Configuration) and it would be
nice to be able to easily set any of them.

Thanks,
Zach

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to