mshtml: Fix inserting a hyperlink when text is already selected.
commit5209ed0c5e1f3b605b5d716896a09ebc094b8985
authorRob Shearman <rob@codeweavers.com>
Fri, 8 Feb 2008 12:17:10 +0000 (8 12:17 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 11 Feb 2008 18:55:18 +0000 (11 19:55 +0100)
tree15ba03d3712813aed699fcf21d992f20bb742aac
parent1991e9f9406ae8f72663aace7e2cfa6afc76e748
mshtml: Fix inserting a hyperlink when text is already selected.

There is no need to use cmd_insertLinkNoUI when we have the code to do
most of the action anyway. Make use of the handy
InsertLinkAroundSelection to insert the "a" element when not inserting
at the caret and don't create a text node in this case because it is
redundant.
dlls/mshtml/editor.c