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

Trying to use Moxiecodes image manager with TinyMCE in the CMS


Go to End


2227 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

23 July 2009 at 1:43am

I found the tutorial documentation for adding new plugins and buttons, namely

HtmlEditorConfig::get('cms')->enablePlugins('../../tinymce_ssmacron'); // enables plugin
HtmlEditorConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron'); // positions plugin

I tried that and it works. I put the image manager in the same folder as tinymce_ssmacron (jsparty) and followed the instructions on the moxiecode wiki. However I get no new button for the image manager. The code in the wiki (as far as I understand it) should be
HtmlEditorConfig::get('cms')->enablePlugins('../../imagemanager');
HtmlEditorConfig::get('cms')->insertButtonsAfter('tablecontrols', 'insertimage');

However this has no effect whatsoever. I don't get a new button and thus no image manager.

Does anyone know if Moxiecodes image manager can be used with Silverstripe and if so how? It's a great plugin for uploading images on the fly when editing content.