Hacker News new | past | comments | ask | show | jobs | submit login

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.




I'm hoping these modern editors you refer to at least replace those <span...> atrocities with the correct elements on save.


They do, they separate the internal representation of the editor state from the saved html.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: