psergus / ngWYSIWYG

true angular WYSIWYG
MIT License
63 stars 42 forks source link

Workaround to insertHTML issue on IE10 and IE11 #45

Closed brunokrebs closed 8 years ago

brunokrebs commented 8 years ago

insertHTML command does not work on IE10 and 11, so this is the workaround. This solution works on ie9, ie10, ie11, chrome, firefox and safari. Well, these are the browsers that I have tested, probably it works on others, like Microsoft Edge.

This solutions is totally based on http://stackoverflow.com/questions/6690752/insert-html-at-caret-in-a-contenteditable-div/6691294#6691294

So :clap: to Tim Down