<p>You <em>can</em> use JavaScript to edit the Redactor settings, but the correct answer here is to add the settings with JSON config files. Those should go into your /craft/config/redactor folder.</p>

<p>Take look at the <a href="https://github.com/aelvan/RedactorStyles-Craft/" rel="nofollow">Redactor Styles</a> plugin though – it will add a couple of textareas to your CP for adding custom Redactor JSON and/or CSS, which should make this a bit easier.</p>

CC BY-SA 3.0
2015-03-02T12:03:19.100Z
Also, see this related thread: <http://craftcms.stackexchange.com/questions/238/how-do-i-add-custom-styles-plugins-to-the-rich-text-editor-in-craft>
Mats Mikkel Rummelhoff
CC BY-SA 3.0
2015-03-02T11:56:13.970Z
2015-03-02T12:01:46.987Z
2015-03-02T12:01:46.987Z
Mats Mikkel Rummelhoff
<p>I am wondering the way to go about modifying the redactor formatting settings either for all the configs or on a per config basis. I want to add custom formatting styles and classes for various text elements. Per the <a href="http://imperavi.com/redactor/docs/settings/formatting/http://" rel="nofollow">documentation</a> 
it seems I need to add it with JS (not something I add in a config json file) but i'm not sure where I need to add the file.</p>

CC BY-SA 3.0
2015-03-02T13:23:45.230Z
Possible duplicate of http://craftcms.stackexchange.com/questions/6993/can-i-limit-the-available-styles-from-the-rich-text-field/
Jamie Wade
<redactor>
Craft CMS Redactor formatting
# Craft CMS Redactor formatting

(Asked by: username_0 on 2015-03-01)

I am wondering the way to go about modifying the redactor formatting settings either for all the configs or on a per config basis. I want to add custom formatting styles and classes for various text elements. Per the [documentation](http://imperavi.com/redactor/docs/settings/formatting/http://)
it seems I need to add it with JS (not something I add in a config json file) but i'm not sure where I need to add the file.

**Tags:** redactor
> **Comments:**
> **username_1**: Possible duplicate of http://craftcms.stackexchange.com/questions/6993/can-i-limit-the-available-styles-from-the-rich-text-field/  

---

## 1 answers

### Answer by username_2 on 2015-03-02. Score: 3 | Accepted answer

You *can* use JavaScript to edit the Redactor settings, but the correct answer here is to add the settings with JSON config files. Those should go into your /craft/config/redactor folder.

Take look at the [Redactor Styles](https://github.com/aelvan/RedactorStyles-Craft/) plugin though – it will add a couple of textareas to your CP for adding custom Redactor JSON and/or CSS, which should make this a bit easier.

> **Comments:**
> **username_2**: Also, see this related thread: <http://craftcms.stackexchange.com/questions/238/how-do-i-add-custom-styles-plugins-to-the-rich-text-editor-in-craft>  

---

