Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html (revision 251)
+++ /FCKeditor/trunk/_whatsnew.html (revision 252)
@@ -52,4 +52,6 @@
was being lost for images or comments only HTML inserted directly in the editor
source or loaded in the editor.
+
[#338] Creating links in
+ lines separated by <br> in IE can lead to a merge of the links.
Index: /FCKeditor/trunk/editor/_source/internals/fck_ie.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fck_ie.js (revision 251)
+++ /FCKeditor/trunk/editor/_source/internals/fck_ie.js (revision 252)
@@ -394,4 +394,15 @@
oLink.href = url ;
oLink.innerHTML = sInnerHtml ; // Restore the innerHTML.
+
+ // If the last child is a
move it outside the link or it will be too easy to select this link again #338
+ if (oLink.lastChild.nodeName == 'BR' )
+ {
+ // We move the br as a sibling after the link:
+ var oBR = oLink.lastChild ;
+ oLink.removeChild( oBR ) ;
+ // There's no insertAfter, so we insert before the next sibling
+ oLink.parentNode.insertBefore( oBR, oLink.nextSibling );
+ }
+
return oLink ;
}