Page 1 of 1

How to add buttons to the text toolbar?

Posted: Wed Nov 05, 2025 3:55 pm
by maxv
I work with some chemical formulas and I'd like to add a couple of buttons to the text toolbar: subscript <sub></sub> and superscript <sup></sup>
So when I write, I obrain this HTML:

Code: Select all

H<sub>2</sub>O + CO<sub>2</sub>
How to add buttons to the text toolbar?

Re: How to add buttons to the text toolbar?

Posted: Fri Nov 07, 2025 6:12 pm
by Edi
You can add the formatting as follows:
  1. open the settings of the editor TinyMCE,
  2. add "subscript" and "superscript" in the field "Toolbar top" or "Toolbar bottom" .
See also

https://www.tiny.cloud/docs/tinymce/lat ... ormatting/