An editor with GHS and Font plugins will split a singular span into two separate ones #16120
Labels
package:font
package:html-support
squad:core
Issue to be handled by the Core team.
support:2
An issue reported by a commercially licensed client.
type:bug
This issue reports a buggy (incorrect) behavior.
📝 Provide detailed reproduction steps (if any)
<span custom-attribute="foo" style="background:red; color:green;">test</span>
✔️ Expected result
In an editor build that contains just GHS, the singular span is retained:
❌ Actual result
Once you include FontColor and FontBackgroundColor in the editor, these plugins will take precedence over GHS and a second span will be inserted:
❓ Possible solution
This is only reproducible if there's something non-standard in the data that GHS needs to handle separately. In the example above, the issue is not reproducible if your remove
custom-attribute="foo"
from the original data.Possibly related to #15757
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: