News for hackers. Stuff that matters.
Re:Innovative Rich Text Editing: Typing Affinity by samwillis on Sunday November 06, 2022 @04:45AM (#33490843)
Older content editable editors would do that. But modern ones have moved to not nesting inline styles, and separating internal data structure from the exported html. Full html isn't really that great for the internal data structure of a rich text editor.

Think of them as having only a none nestable <span> tag with a style attribute.

Re:Innovative Rich Text Editing: Typing Affinity by oneeyedpigeon on Sunday November 06, 2022 @05:12AM (#33491020)
I'm hoping these modern editors you refer to at least replace those <span...> atrocities with the correct elements on save.
Re:Innovative Rich Text Editing: Typing Affinity by samwillis on Sunday November 06, 2022 @05:15AM (#33491043)
They do, they separate the internal representation of the editor state from the saved html.