Reapplying active font size/family with collapsed selection adds nested spans with same styling #1306
Labels
plugin:font
The plugin which probably causes the issue.
regression
This issue is a regression.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
Milestone
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
/tests/plugins/font/manual/preservestyle
(can be performed in any editor instance withfont
plugin).foo bar
.Expected result
Font keeps its size. Additional HTML elements are not added.
Actual result
Font keep its size. However, additional nested spans are added and if you start to type you end up with something like
<p><span style="font-size:24px">Hel<span style="font-size:24px"><span style="font-size:24px"><span style="font-size:24px"><span style="font-size:24px">foo</span></span></span></span>lo</span> world</p>
.As we updated the logic of dropdown (Default value), previously reapplying the same style just removed it. So it is regression in a sense that it got broken not that it does not work like before.
Other details
font
The text was updated successfully, but these errors were encountered: