Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Enable tinymce plugins

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1654 Views
  • gman
    Avatar
    Community Member
    11 Posts

    Enable tinymce plugins Link to this post

    Running 2.4.2
    Windows Server 2003 R2
    Apache 2.2.11
    PHP 5.3.3

    Is it possible in SilverStripe implementation of tinymce to enable plugins that are not enabled by default. For example, what would I have to do to enable the layer plugin.

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Enable tinymce plugins Link to this post

    You can put these in your site config to add or remove plugins/buttons.

    HtmlEditorConfig::get('cms')->enablePlugins('media', 'safari');
    HtmlEditorConfig::get('cms')->insertButtonsAfter('ssimage', 'media');
    HtmlEditorConfig::get('cms')->insertButtonsAfter('strikethrough', 'removeformat');
    HtmlEditorConfig::get('cms')->removeButtons('tablecontrols', 'indent', 'outdent', 'anchor', 'ssflash', 'underline');

    You can customize the position, plugin etc. Use which ever ones you need.

  • Optic Blaze
    Avatar
    Community Member
    162 Posts

    Re: Enable tinymce plugins Link to this post

    This worked for me

    //Enable layers plugin in the WYSIWYG editor//
    HtmlEditorConfig::get('cms')->enablePlugins('layer');
    HtmlEditorConfig::get('cms')->insertButtonsAfter('tablecontrols', 'insertlayer', 'absolute');

  • Mackodlak
    Avatar
    Community Member
    95 Posts

    Re: Enable tinymce plugins Link to this post

    Can you do it in blog module frontend entry posting and editing?

    1654 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.