It looks like you’re browsing an old version of Froala. Please go to the newer version of our docs for a more updated version.
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>