Is there something better than document.execCommand?
问题 When implementing a web-based rich-text editor, I read that document.execCommand is useful for performing operations on an HTML document (like making a selection bold). However, I need something a bit better. Specifically, I need to know exactly what text is added or removed from the innerHTML, and in what location (as an offset into the entire document's HTML representation). I considered using the built in document.execCommand along side DOM4's mutation observer, but execCommand doesn't