Upfront editor is messing up HTML code when changing text colors

Put a text module on site, put some text on it, select it and change color a couple of times, save it and inspect that element on front-end with browser tools - there'll be a "stacked/nested" HTML (multiple nested spans most likely but not necessarily, either way, it's "too much" HTML there).

Then do the same but first make the text a link. The result in the source should be similar.

In both cases, it's affecting layout (in a sense that colors might not be applied properly sometimes) but also might break CSS/custom CSS that was applied to an element initially (before changing colors).