<p>In case anyone runs into this issue and finds the Redactor-Extras plugin isn't working, this plugin by Doug Thwaites worked for me: <a href="https://github.com/DougThwaites/CraftRedactorFontAlignment" rel="nofollow noreferrer">https://github.com/DougThwaites/CraftRedactorFontAlignment</a></p>

CC BY-SA 4.0
2020-10-19T19:20:15.350Z
Welcome to Craft! There's no need for a plugin - just add `"plugins": ["alignment"],` to your Redactor config
darylknight
CC BY-SA 4.0
2020-10-21T13:48:51.040Z
It's that easy to tell I'm new to Craft? I don't know if that's a good sign or a bad one...
Ruben Vreeken
CC BY-SA 4.0
2020-10-19T18:37:04.660Z
2020-10-19T18:37:04.660Z
Ruben Vreeken
<p>Per their <a href="https://github.com/elliotlewis/Redactor-Extras#configuration" rel="nofollow noreferrer">configuration docs</a>, which also link to <a href="https://craftcms.com/docs/rich-text-fields#redactor-configs" rel="nofollow noreferrer">Craft's docs</a> on the subject, it looks like you'd just need to add "alignment" to the plugins portion of one of your <code>craft/config/redactor/</code> JSON config files.</p>

<p>i.e. </p>

<pre><code>{
    "plugins": ["alignment"]
}
</code></pre>

<p>Then whatever config you end up modifying, you'll want to make sure that config is selected under that field's settings in Craft (Settings->Fields->Your Rich Text Field).</p>

CC BY-SA 3.0
2017-08-11T11:40:48.217Z
Just what I needed, turns out I was missing out that last step. Thanks!
Amy
CC BY-SA 3.0
2017-10-19T02:35:17.557Z
This does not work as Craft does not include the Alignment plugin. P&T, please add this plugin. https://imperavi.com/redactor/plugins/alignment/
AbbeyDesign
CC BY-SA 3.0
2017-08-10T21:39:50.373Z
2017-08-10T21:39:50.373Z
Brad Bell
<p>I'm trying to add the ability to be able to align text left, right and center to my rich text fields. I have had a look into it and can only find a version which works perfect for body fields but not rich content.</p>

<p>The plugin I tried to use for this is here: <a href="https://github.com/elliotlewis/Redactor-Extras" rel="nofollow noreferrer">https://github.com/elliotlewis/Redactor-Extras</a></p>

<p>I also looked at redactorstyles which did the same thing.</p>

<p>Is there possibly a way to apply this to all fields or is there another way I could go about it in redactors standard.json? </p>

CC BY-SA 3.0
2017-10-11T17:58:23.577Z
Doesnt work for me any more. Is the "alignment" plugin not available any more in the latest redactor version?
Jan
<redactor><richtext><plugin-redactorstyles>
Text Align Buttons for Rich Text Fields
# Text Align Buttons for Rich Text Fields

(Asked by: username_0 on 2017-08-10)

I'm trying to add the ability to be able to align text left, right and center to my rich text fields. I have had a look into it and can only find a version which works perfect for body fields but not rich content.

The plugin I tried to use for this is here: <https://github.com/elliotlewis/Redactor-Extras>

I also looked at redactorstyles which did the same thing.

Is there possibly a way to apply this to all fields or is there another way I could go about it in redactors standard.json?

**Tags:** redactor, richtext, plugin-redactorstyles
> **Comments:**
> **username_1**: Doesnt work for me any more. Is the "alignment" plugin not available any more in the latest redactor version?  

---

## 2 answers

### Answer by username_4 on 2017-08-10. Score: 4 | Accepted answer

Per their configuration docs, which also link to Craft's docs on the subject, it looks like you'd just need to add "alignment" to the plugins portion of one of your craft/config/redactor/ JSON config files.
i.e. 
{
    "plugins": ["alignment"]
}

Then whatever config you end up modifying, you'll want to make sure that config is selected under that field's settings in Craft (Settings->Fields->Your Rich Text Field).

> **Comments:**
> **username_0**: Just what I needed, turns out I was missing out that last step. Thanks!  
> **username_5**: This does not work as Craft does not include the Alignment plugin. P&T, please add this plugin. https://imperavi.com/redactor/plugins/alignment/  

---

### Answer by username_2 on 2020-10-19. Score: 1

In case anyone runs into this issue and finds the Redactor-Extras plugin isn't working, this plugin by Doug Thwaites worked for me: <https://github.com/DougThwaites/CraftRedactorFontAlignment>

> **Comments:**
> **username_3**: Welcome to Craft! There's no need for a plugin - just add `"plugins": ["alignment"],` to your Redactor config  
> **username_2**: It's that easy to tell I'm new to Craft? I don't know if that's a good sign or a bad one...  

---

