-
Notifications
You must be signed in to change notification settings - Fork 4.8k
RichText: Combine nested strong tags to one #70542
Copy link
Copy link
Open
Labels
[Feature] Paste[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditableRelated to the Rich Text component that allows developers to render a contenteditable[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Metadata
Metadata
Assignees
Labels
[Feature] Paste[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditableRelated to the Rich Text component that allows developers to render a contenteditable[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this address?
Sometimes my client edit text and make it bold.
However, they somehow manage to create nested
strongtags (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
Which is displayed like this:

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.