3 ms·
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
by samwillis 4y ago
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.
- oneeyedpigeon 4y agoI'm hoping these modern editors you refer to at least replace those <span...> atrocities with the correct elements on save.
- samwillis 4y agoThey do, they separate the internal representation of the editor state from the saved html.