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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Possible to add TinyMCE plugins?


Go to End


2 Posts   2635 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.