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
Martin
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.
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
Martin
Alright,
take a look at... http://api.silverstripe.org/trunk/forms/fields-formattedinput/HtmlEditorConfig.html
I use..
HtmlEditorConfig::get('cms')->insertButtonsBefore('formatselect', 'fontselect');
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();
})(jQuery);
2. add this line to your mysite/_config.php
LeftAndMain::require_javascript('mysite/javascript/hideUpload.js');
This will hide the the image upload thingy from your users.
Cheers,
Christian