<p>The definitive and most simple answer for all Redactor Inline Styles requests is this great plugin from carlcs:
<a href="https://github.com/carlcs/craft-redactorinlinestyles" rel="nofollow noreferrer">https://github.com/carlcs/craft-redactorinlinestyles</a></p>

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

CC BY-SA 3.0
2015-11-11T12:02:00.260Z
2015-11-11T12:02:00.260Z
migmaker
<p>In <code>craft/config/redactor</code> you can either add your own setting file, or edit one of the ones already there. If you add the following JSON:</p>

<pre><code>"formattingAdd": [
  {
    "tag": "sup",
    "title": "Superscript"
  }
]
</code></pre>

<p>You will have access to a <code>Superscript</code> choice under the <code>Formatting</code> buttons dropdown menu. This will wrap the selected text in a <code>&lt;sup&gt;</code> tag.</p>

<p>While I'm not sure if this is the correct way of adding stuff like this, I just tested it and it does work.</p>

CC BY-SA 3.0
2015-08-23T18:20:19.533Z
2015-08-23T18:20:19.533Z
megatrond
<p>I want to provide an easy way to make exponent style text in the Redactor field type.<br>
<a href="https://i.sstatic.net/mAchv.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mAchv.jpg" alt="enter image description here"></a></p>

<p><strong>Is there a Redactor plugin to do that?</strong>  </p>

<p>If no what is the best way to handle that?  </p>

<p>1/ HTML superscript tag  </p>

<p><code>&lt;p&gt;This text contains &lt;sup&gt;superscript&lt;/sup&gt; text.&lt;/p&gt;</code></p>

<p>or<br>
2/ CSS custom Redactor class  </p>

<pre><code>.sup { 
    vertical-align: super;
    font-size: smaller;
}  
</code></pre>

<redactor><plugin-redactorstyles>
Make exponent style in Riche Text field
# Make exponent style in Riche Text field

(Asked by: username_0 on 2015-08-23)

I want to provide an easy way to make exponent style text in the Redactor field type.

Is there a Redactor plugin to do that? 
If no what is the best way to handle that?  
1/ HTML superscript tag  
This text contains superscript text.
or
2/ CSS custom Redactor class  
.sup { 
    vertical-align: super;
    font-size: smaller;
}

**Tags:** redactor, plugin-redactorstyles


---

## 2 answers

### Answer by username_0 on 2015-11-11. Score: 1 | Accepted answer

The definitive and most simple answer for all Redactor Inline Styles requests is this great plugin from carlcs:
<https://github.com/carlcs/craft-redactorinlinestyles>

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


---

### Answer by username_1 on 2015-08-23. Score: 5

In craft/config/redactor you can either add your own setting file, or edit one of the ones already there. If you add the following JSON:
"formattingAdd": [
  {
    "tag": "sup",
    "title": "Superscript"
  }
]

You will have access to a Superscript choice under the Formatting buttons dropdown menu. This will wrap the selected text in a  tag.
While I'm not sure if this is the correct way of adding stuff like this, I just tested it and it does work.


---

