I am looking to control what asset directories are available from the image upload button in a rich text field. Is this possible?

Also, does anyone know the Redactor setting to set the default size of the editor? I can't seem to track it down.



1 Answer 1


Is there a way to limit the Asset upload directory in Redactor?

No. You'll want to use a Matrix Field with an image block.

That said, it's possible you could create a Redactor button that does this via a plugin, but it'd probably be a bit of work.

Does anyone know the Redactor setting to set the default size of the editor?

The setting your looking for is minHeight. Here's an example:

    buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
    plugins: ['fullscreen', 'pagebreak'],
    minHeight: 200

A longer discussion on custom Redactor toolbars and a few more examples can be found in this article: Custom Redactor Toolbars for the Rich Text Field in Craft CMS

  • Hey Ben, this came up as a need for me today. If I were to make a plugin to restrict Redactor uploads to a single folder, what "bit of work" would be necessary?
    – Lindsey D
    Commented Aug 15, 2014 at 23:13
  • Hey @LindseyD. I do not know! =) I wasn't referring to any specific knowledge beyond it seems that Craft has integrated uploads to some degree, so it would likely be possible to take that a bit further. I'd probably start by trying to dig into how Craft is extending Redactor for file uploads as a start. Commented Aug 16, 2014 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.