+2010-11-08 Stanislas Rolland <typo3@sjbr.ca>
+
+ * Fixed bug #16245: htmlArea RTE: When inserting link with IE8, trailing line break is also linked
+
2010-11-07 Steffen Gebert <steffen@steffen-gebert.de>
* Fixed bug #16246: Create class constants for pages.doktype
+2010-11-08 Stanislas Rolland <typo3@sjbr.ca>
+
+ * Fixed bug #16245: htmlArea RTE: When inserting link with IE8, trailing line break is also linked
+
2010-11-07 Stanislas Rolland <typo3@sjbr.ca>
* Added feature #16293: htmlArea RTE: Add quick tips to insert emoticon dialogue
el = HTMLArea.getElementObject(node, "a");
if (el != null && /^a$/i.test(el.nodeName)) node = el;
if (node) {
+ // Export trailing br that IE may include in the link
+ if (Ext.isIE) {
+ if (node.lastChild && /^br$/i.test(node.lastChild.nodeName)) {
+ HTMLArea.removeFromParent(node.lastChild);
+ node.parentNode.insertBefore(this.editor.document.createElement('br'), node.nextSibling);
+ }
+ }
if (HTMLArea.classesAnchorSetup && cur_class) {
for (var i = HTMLArea.classesAnchorSetup.length; --i >= 0;) {
anchorClass = HTMLArea.classesAnchorSetup[i];