- Getting Started
- Browser Support
- Languages Support
- Shortcuts
- Activation
- Examples
- Customize the Editor
- Use-cases
- Plugins
- APIs
- Development Frameworks
- Server Integrations
- Server SDKs
- Migration Guides
- Changelog
- Tutorials
Buttons
Subscript and Superscript
Try it yourself:
HTML
<div id="froala-editor">
<p>To use <code>subscript</code> and <code>superscript</code>, just make sure that you include these buttons in the buttons list using the <a href="../docs/options#toolbarButtons" title="toolbarButtons option" target="_blank">toolbarButtons</a> option.</p>
</div>
JAVASCRIPT
<script>
new FroalaEditor('div#froala-editor', {
// Include the subscript and superscript buttons.
toolbarButtons: [['bold', 'italic', 'subscript', 'superscript'], ['indent', 'outdent', 'formatOL', 'formatUL']]
})
</script>