How to add buttons to the text toolbar?

Post Reply
maxv
Ssr. Bludit
Posts: 17
Joined: Wed Mar 11, 2020 6:05 pm

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?
User avatar
Edi
Site Admin
Posts: 3088
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 73 times
Been thanked: 105 times
Contact:

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/
aufbruch1900.ch, Plattform zu Kunst und Kultur um 1900
Post Reply