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.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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.
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.
This worked for me
//Enable layers plugin in the WYSIWYG editor//
HtmlEditorConfig::get('cms')->enablePlugins('layer');
HtmlEditorConfig::get('cms')->insertButtonsAfter('tablecontrols', 'insertlayer', 'absolute');
Can you do it in blog module frontend entry posting and editing?