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.

Customising the CMS

TinyMCE Plugin


Reply

3 Posts   1188 Views

Avatar
lemoony

31 March 2011 at 12:37am Community Member, 4 Posts

Hi,

I tried to install the the following TinyMCE Liststyle-Plugin:

http://policypoint.com/tinymce/docs/plugin_liststyle.html
(Download from: http://policypoint.com/tinymce/docs/plugin_liststyle.html)

I copied the 'liststyle' directory sapphire/thirdparty/tinymce/plugins and I have added

HtmlEditorConfig::get('cms')->enablePlugins('liststyle');
HtmlEditorConfig::get('cms')->addButtonsToLine(2, 'liststyle');

to mysite/_conifg.php, cms/_config.php & sapphire/_config.php - because I wasn't sure which file exactly ;) And, surprisingly, the plugin doesn't work :(

Does anyone have experience with that sort of thing?

Thanks,

lemoony

Avatar
Carbon Crayon

4 April 2011 at 8:59pm Community Member, 598 Posts

Hi Lemoony,

I always put my TinyMCE plugins outside of hte core, in a folder called 'thirdparty' in the root. I then add this line to my config:

HtmlEditorConfig::get('cms')->enablePlugins(array('PluginName' => '../../../thirdparty/PluginName/editor_plugin.js'));

Not sure if it will help in your case though, but worth a try :)

Aram

www.SSbits.com - Your one stop SilverStripe learning resource

Avatar
muskie9

4 August 2014 at 12:25pm Community Member, 10 Posts

Any trick to this in SS 3.1.x?????