Skip to content

RichText: Combine nested strong tags to one #70542

Open
@hanneslsm

Description

@hanneslsm

What problem does this address?

Sometimes my client edit text and make it bold.
However, they somehow manage to create nested strong tags (I honestly don't know how but from my understanding they should't be able to when only using the editor). Because of this the variable font is rendered incorrectly.

Example

  • First row: nested strong tags
    • Image
  • Second: manually removed to show you how the font should be rendered in Chrome (note the font-weight)
    • Image

Which is displayed like this:
Image

See: https://www.bittner-krull.de/produkte/rollout-planungstool/

What is your proposed solution?

The code should be cleaner by stripping strong tags / combining them to one if they are nested. And when one directly followed by another without any other characters in between.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions