Javascript: document.execCommand cross-browser?

This is for ‘design mode’ where the browser effectively turns the document into an editor. The execCommand API originated with IE and was later added to HTML5. Exactly which commands are supported, as well as their behavior varies across browsers. Clipboard access is considered a security risk.

Leave a Comment