<p><strong>Is there a way to limit the Asset upload directory in Redactor?</strong></p>

<p>No. You'll want to use a Matrix Field with an image block.</p>

<p>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.</p>

<p><strong>Does anyone know the Redactor setting to set the default size of the editor?</strong></p>

<p>The setting your looking for is <code>minHeight</code>.  Here's an example:</p>

<pre><code>{
    buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
    plugins: ['fullscreen', 'pagebreak'],
    minHeight: 200
}
</code></pre>

<p>A longer discussion on custom Redactor toolbars and a few more examples can be found in this article: <a href="http://straightupcraft.com/articles/custom-redactor-toolbars-for-the-rich-text-field-in-craft-cms">Custom Redactor Toolbars for the Rich Text Field in Craft CMS</a></p>

CC BY-SA 3.0
2014-08-15T23:13:18.723Z
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
CC BY-SA 3.0
2014-08-16T21:32:47.557Z
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.
Ben Parizek
CC BY-SA 3.0
2014-07-07T20:43:32.357Z
2014-07-07T20:57:44.187Z
2014-07-07T20:57:44.187Z
Ben Parizek
<p>I am looking to control what asset directories are available from the image upload button in a rich text field. Is this possible?</p>

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

<p>Thanks!</p>

CC BY-SA 3.0
2015-08-15T12:23:06.547Z
Got same problem. Feature request here : http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/9335715-limit-the-asset-upload-directory-in-redactor
migmaker
<redactor>
Is there a way to limit the Asset upload directory in Redactor?
# Is there a way to limit the Asset upload directory in Redactor?

(Asked by: username_0 on 2014-07-07)

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.

Thanks!

**Tags:** redactor
> **Comments:**
> **username_1**: Got same problem. Feature request here : http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/9335715-limit-the-asset-upload-directory-in-redactor  

---

## 1 answers

### Answer by username_2 on 2014-07-07. Score: 9 | Accepted answer

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

> **Comments:**
> **username_3**: 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?  
> **username_2**: 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.  

---

