Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Possible to add TinyMCE plugins?


Go to End


2 Posts   2139 Views

Avatar
Brig

Community Member, 26 Posts

20 August 2009 at 12:39am

Edited: 20/08/2009 9:06am

Hello all

Is it possible to add a third party plugin (SMImage) to the TinyMCE in SS?

The plugin I have is designed for TinyMCE, http://www.synasys.de/index.php?id=46.

I found this superb tutorial site http://www.ssbits.com/customising-the-wysywig-editor-in-v2-3-2-tinymce/ but the instructions here doesn't work for me with this plugin.

It's saying to add this line to the _config.php file:

HtmlEditorConfig::get('cms')->enablePlugins('smimage');

Then add this line which should add the button for the new plugin in the TinyMCE editor:

HtmlEditorConfig::get('cms')->insertButtonsAfter('formatselect', 'smimage');

I've placed the plugin in jsparty\tiny_mce2\plugins\smimage

When I try this nothing happens.

Is this the correct way of doing it? Am I doing something wrong or maybe third party plugins won't work with SS?

EDIT: Forgot to mention that I'm using SS Version 2.3.3.

Avatar
Zooney

Community Member, 9 Posts

13 April 2010 at 4:05am

I'm gonna give this a BUMP... ...'cause I want to know too.