-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Superscript and subscript can be active at the same time (formatting conflict) #20000
Description
In the text formatting (e.g. RTE/editor), “Superscript” and “Subscript” can be active at the same time.
Enabling one function does not disable the other, although only one of these two formatting options should be applied to a given character/selection at a time.
📝 Provide detailed reproduction steps (if any)
Type some text and select part of the text.
Click on “Superscript”.
Result: The selected text becomes superscript.
Without changing the selection, additionally click on “Subscript”.
✔️ Expected result
The new choice (Subscript) replaces the previous one (Superscript). The text is only subscript, not superscript anymore.
❌ Actual result
Both buttons can be active at the same time, leading to inconsistent formatting and potentially incorrect rendering in the editor/output.
❓ Possible solution
Perhaps a toogle could or a select field is possible