Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

document.execCommand('insertHTML'...in IE11

$
0
0
After a while I continued constructing my rich text editor (huh-huh…) to be able to customize some things better. All of a sudden I noticed that my previous IE version 10.0 had been updated to IE 11. Obviously IE 11 now uses the feature “contentWindow.getSelection()” instead of “selection.createRange()”. The problem arising is that IE 11 neither recognizes/accepts rangeObj.pasteHTML() nor document.execCommand('insertHTML',…) methods/functions. Well, as it turns out in these kind of situations, I have spent HOURS for finding a solution, but I haven’t found anything  other than setting in the html head section the statement “<meta http-equiv="X-UA-Compatible" content="IE<11" />”, which works, as IE 11 seems to lack a method to complete the action mentioned before – or is there a method or some kind of workaround?

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>