Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » TinyMCE Plugin

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

Page: 1
Go to End
Author Topic: 1052 Views
  • lemoony
    Avatar
    Community Member
    4 Posts

    TinyMCE Plugin Link to this post

    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

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: TinyMCE Plugin Link to this post

    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

    1052 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.