Fixes #17431 LinkDialog not creating links in IE11. I have added code to handle IE >= 9 separately, in order to continue to use execCommand(inserthtml) for browsers other than IE.
(cherry picked from commit 02af5640060b4b4f3ba6770aec9db718c2336ce7)