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 selectio
document.execCommand
There is Trix rich text editor, from their description it looks like avoiding inconsistent execCommand is the whole point of the project.