Days
Hours
Minutes
Seconds
x

Froala Editor v4.2.0 is Here LEARN MORE

Skip to content

Examples

Subscript and Superscript

Use the buttons option to add the subscript and superscript buttons in the rich text editor's toolbar.

HTML

<div id="eg-subscript-superscript" class="text-small">
          <p>Use the <strong>buttons</strong> option to add the subscript and superscript buttons in the rich text editor's toolbar.</p>
        </div>

JAVASCRIPT

<script>
  $(function() {
    $('div#eg-subscript-superscript').editable({
      inlineMode: false,

      // Include the subscript and superscript buttons.
      buttons: ['bold', 'italic', 'sep', 'indent', 'outdent',
        'insertOrderedList', 'insertUnorderedList', 'sep',
        'createLink', 'insertImage', 'subscript', 'superscript'],
    })
  });
</script>