Skip to content

Superscript and subscript can be active at the same time (formatting conflict) #20000

@cjung667

Description

@cjung667

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    introGood first ticket.intro-enhancedpackage:basic-stylessquad:platformIssue to be handled by the Platform team.type:bugThis issue reports a buggy (incorrect) behavior.type:improvementThis issue reports a possible enhancement of an existing feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions