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

<p>Includes the plugin from Redactors site for Superscript and Subscript. Has other extras as well.</p>

CC BY-SA 3.0
2016-02-16T15:01:31.463Z
2016-02-16T15:01:31.463Z
Elliot Lewis
<p>Check out the example over at the Redactor documentation: <a href="http://imperavi.com/redactor/examples/buttons-sup-and-sub/" rel="nofollow">Add Sup and Sub Buttons</a> - As an aside, also check out this article over at Straightupcraft.com: <a href="http://straightupcraft.com/articles/how-to-add-custom-redactor-toolbars-to-the-default-rich-text-field-in-craft-cms" rel="nofollow">How to add custom Redactor toolbars to the default Rich Text field</a>.</p>

<ol>
<li>Save the example as a plugin file in craft/app/resources/lib/redactor/plugins, for example subsup.js (I don't know how to customize this so you can safely add custom plugins, or how to tell redactor to look for more than one place. An alternative way is to make a custom Craft plugin that add the plugin JS to the entry page).</li>
<li><p>Make a custom redactor configuration file and add it to craft/config/redactor. This is the standard.json</p>

<p>{
    buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
    plugins: ['fullscreen'],
    toolbarFixedBox: true
}</p></li>
<li><p>Add your plugin name to the plugins array:</p>

<p>plugins: ['fullscreen', 'subsup'],</p></li>
<li><p>In your field settings, under Config, select the custom config.json file.</p></li>
</ol>

<p>Now, since we added the plugins file within the redactor/plugins folder, we risk it being overwritten. The best way is to add it via a plugin, but the mentioned process might be a quick way for you to add it now.</p>

CC BY-SA 3.0
2014-09-24T15:22:05.470Z
Ah ok. We are considering making a plugin, but haven't had a chance to take a stab at adding to control panel yet. This might be a good first go at it. Thanks for the tips!
Bill Columbia
CC BY-SA 3.0
2014-09-23T20:39:35.130Z
2014-09-23T20:39:35.130Z
Fred Carlsen
<p>There are keyboard shortcuts that can accomplish super and subscript.</p>

<p>From the Redactor <a href="http://imperavi.com/redactor/log/" rel="nofollow">changelog</a>:</p>

<ol>
<li><p>Superscript shortcut now crtl+h (high, super) instead of old ctrl+l</p></li>
<li><p>Subscript shortcut now crtl+l (low, sub) instead of old ctrl+h</p></li>
</ol>

CC BY-SA 3.0
2014-09-24T15:23:42.597Z
Those definitely worked. Now I'm wondering if we can trust the client with the keyboard shortcuts! Thank you!
Bill Columbia
CC BY-SA 3.0
2014-09-23T20:29:39.637Z
2014-09-23T20:29:39.637Z
John Moylan
<p>We need to be able to add super and sub-text to a rich text field without having the client dive into the markup. Has anyone successfully added this as a redactor or Craft plugin?</p>

<richtext><redactor>
How can I use <small> <sub> <sub> within a redactor/rich-text field?
# How can I use <small> <sub> <sub> within a redactor/rich-text field?

(Asked by: username_0 on 2014-09-23)

We need to be able to add super and sub-text to a rich text field without having the client dive into the markup. Has anyone successfully added this as a redactor or Craft plugin?

**Tags:** richtext, redactor

---

## 3 answers

### Answer by username_3 on 2014-09-23. Score: 4 | Accepted answer

There are keyboard shortcuts that can accomplish super and subscript.

From the Redactor [changelog](http://imperavi.com/redactor/log/):

1. Superscript shortcut now crtl+h (high, super) instead of old ctrl+l
2. Subscript shortcut now crtl+l (low, sub) instead of old ctrl+h

> **Comments:**
> **username_0**: Those definitely worked. Now I'm wondering if we can trust the client with the keyboard shortcuts! Thank you!  

---

### Answer by username_1 on 2016-02-16. Score: 1

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

Includes the plugin from Redactors site for Superscript and Subscript. Has other extras as well.


---

### Answer by username_2 on 2014-09-23. Score: 1

Check out the example over at the Redactor documentation: [Add Sup and Sub Buttons](http://imperavi.com/redactor/examples/buttons-sup-and-sub/) - As an aside, also check out this article over at Straightupcraft.com: [How to add custom Redactor toolbars to the default Rich Text field](http://straightupcraft.com/articles/how-to-add-custom-redactor-toolbars-to-the-default-rich-text-field-in-craft-cms).

1. Save the example as a plugin file in craft/app/resources/lib/redactor/plugins, for example subsup.js (I don't know how to customize this so you can safely add custom plugins, or how to tell redactor to look for more than one place. An alternative way is to make a custom Craft plugin that add the plugin JS to the entry page).
2. Make a custom redactor configuration file and add it to craft/config/redactor. This is the standard.json

   {
   buttons: ['html','formatting','bold','italic','unorderedlist','orderedlist','link','image','video'],
   plugins: ['fullscreen'],
   toolbarFixedBox: true
   }
3. Add your plugin name to the plugins array:

   plugins: ['fullscreen', 'subsup'],
4. In your field settings, under Config, select the custom config.json file.

Now, since we added the plugins file within the redactor/plugins folder, we risk it being overwritten. The best way is to add it via a plugin, but the mentioned process might be a quick way for you to add it now.

> **Comments:**
> **username_0**: Ah ok. We are considering making a plugin, but haven't had a chance to take a stab at adding to control panel yet. This might be a good first go at it. Thanks for the tips!  

---

