<p>You can use the <a href="https://imperavi.com/redactor/docs/settings/formatting/#setting-formattingAdd"><code>formattingAdd</code></a> config setting to add custom formatting to the "Format" dropdown.</p>

<pre><code>formattingAdd: {
  "align-left": {
    "title": "Align left",
    "args": ["p","class","align-left"],
  },
  "align-right": {
    "title": "Align right",
    "args": ["p","class","align-right"],
  },
  "align-center": {
    "title": "Align center",
    "args": ["p","class","align-center"],
  },
  "align-justify": {
    "title": "Justify",
    "args": ["p","class","align-justify"],
  },
},
</code></pre>

<p>If you want to have a separate dropdown or individual buttons in the toolbar for this functionality, have a look at my plugin <a href="https://github.com/carlcs/craft-redactorinlinestyles">Redactor Inline Styles</a>.</p>

CC BY-SA 3.0
2016-01-21T15:58:08.773Z
carlcs - After a comparison, I would recommend your RedactorInlineStyles plugin to anyone wanting to return Redactor within Craft to its former glory. The documentation and examples you include with the plugin are great and really made it easy to configure.
Davis Harrison Dion
CC BY-SA 3.0
2016-01-19T23:30:52.490Z
2016-01-19T23:30:52.490Z
carlcs
<p>Either existing answer could work.</p>

<p>Another option is a plugin I've recently built. Redactor Extras: <a href="https://github.com/elliotlewis/Redactor-Extras" rel="noreferrer">https://github.com/elliotlewis/Redactor-Extras</a></p>

<p>Uses the Plugin from Redactors site for align. Has other extras as well.</p>

CC BY-SA 3.0
2017-05-10T01:10:59.510Z
great plugin. quick and easy to install and get stuff happening. thanks!
bhu Boue vidya
CC BY-SA 3.0
2016-02-16T14:48:28.347Z
2016-02-16T14:48:28.347Z
Elliot Lewis
<p>Thank you.</p>

<p>I also discovered this plugin which allows the addition of styles to the redactor editor.</p>

<p><strong>RedactorStyleIt</strong></p>

<p><a href="https://github.com/aelvan/RedactorStyleIt-Craft" rel="nofollow noreferrer">https://github.com/aelvan/RedactorStyleIt-Craft</a></p>

<p><a href="https://i.sstatic.net/OnKN2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OnKN2.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2016-01-20T17:16:20.280Z
2016-01-20T17:16:20.280Z
Davis Harrison Dion
<p>Left, Center, Right -- Can the text alignment button be added to Redactor 2, and if so, how?</p>

<redactor><richtext>
Redactor 2 - Can a text alignment button be added?
# Redactor 2 - Can a text alignment button be added?

(Asked by: username_0 on 2016-01-19)

Left, Center, Right -- Can the text alignment button be added to Redactor 2, and if so, how?

**Tags:** redactor, richtext

---

## 3 answers

### Answer by username_1 on 2016-01-19. Score: 9

You can use the formattingAdd config setting to add custom formatting to the "Format" dropdown.
formattingAdd: {
  "align-left": {
    "title": "Align left",
    "args": ["p","class","align-left"],
  },
  "align-right": {
    "title": "Align right",
    "args": ["p","class","align-right"],
  },
  "align-center": {
    "title": "Align center",
    "args": ["p","class","align-center"],
  },
  "align-justify": {
    "title": "Justify",
    "args": ["p","class","align-justify"],
  },
},

If you want to have a separate dropdown or individual buttons in the toolbar for this functionality, have a look at my plugin Redactor Inline Styles.

> **Comments:**
> **username_0**: carlcs - After a comparison, I would recommend your RedactorInlineStyles plugin to anyone wanting to return Redactor within Craft to its former glory. The documentation and examples you include with the plugin are great and really made it easy to configure.  

---

### Answer by username_2 on 2016-02-16. Score: 7

Either existing answer could work.

Another option is a plugin I've recently built. Redactor Extras: <https://github.com/elliotlewis/Redactor-Extras>

Uses the Plugin from Redactors site for align. Has other extras as well.

> **Comments:**
> **username_3**: great plugin. quick and easy to install and get stuff happening. thanks!  

---

### Answer by username_0 on 2016-01-20. Score: 1

Thank you.

I also discovered this plugin which allows the addition of styles to the redactor editor.

**RedactorStyleIt**

<https://github.com/aelvan/RedactorStyleIt-Craft>

[![enter image description here](https://i.sstatic.net/OnKN2.png)](https://i.sstatic.net/OnKN2.png)


---

