Quill.js
use a pre-made editing solution like Quill.js
Rich text serialization is its own problem and you shouldn’t waste your development time on it :)
Don’t waste time on reinventing existing solutions
richtext reuse
web development
JavaScript