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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Disable "Upload file" in tinymcy image editor

Go to End

3 Posts   1081 Views


Community Member, 59 Posts

12 February 2011 at 1:42am

Is this possible without hacking the code?

I want to force my users to only upload using "Files and Images" tab until they are a bit more established.

Many thanks


Forum Moderator, 1899 Posts

12 February 2011 at 1:54am


take a look at...

I use..

HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'fontselect'); my _config.php to *add* something, maybe one of the other functions like "modifyButtons" might help?


Community Member, 141 Posts

12 February 2011 at 2:48am

Edited: 12/02/2011 2:49am

Well, i think i've got a rather hacky solution:

1. create a file hideUpload.js in mysite/javascript/ with this code:

(function($) {
    $("#Form_EditorToolbarImageForm p.showUploadField").hide();

2. add this line to your mysite/_config.php


This will hide the the image upload thingy from your users.