Editor Subtext, Supertext

Dear Webix,

I noticed, that in the rich text editor, the subtext and supertext options, cannot be reset.

  1. Once supertext or subtext are pressed on a text, pressing it again will not turn it off.
  2. Even pressing the “Clear Formatting” option does not remove the subtext property, if the property is once set.
    (Only thing working for resetting it, is the Undo button, but for a better user experience, some other way should be able to turn this feature off once it is turned on)

Is there a way around this?

Hello @DevAdminPowerON ,

We agree that there is should be a way to reset sub/supertext so we will add it in one of the next releases (most probably we will make the options toggable like the other formatting options as it is already partly supported). Thank you!

Now please check this workaround: Code Snippet .
Here we add subscript and superscript buttons to the toolbar. Also we customize Operations service of Richtext to process subscript/superscript actions via a menubar/toolbar and add formatting removing (29 code line).

Code Snippet - you also could check one more example with a custom logic where we remove sub/super text formatting via a Clear formatting button.