Project

General

Profile

Bug #19119 » rtehtmlarea_bugfix_8996_span.patch

Administrator Admin, 2008-09-08 18:19

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/TYPO3Link/typo3link.js (copie de travail)
}
// In FF, if the url is the same except for upper/lower case of a file name, the link is not updated.
// Therefore, we remove the link before creating a new one.
if (HTMLArea.is_gecko) {
if (HTMLArea.is_gecko && node != null && /^a$/i.test(node.nodeName)) {
// If the class attribute is not removed, UnLink folowed by CreateLink will create a span element inside the new link
node.removeAttribute("class");
this.editor._doc.execCommand("UnLink", false, null);
}
if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
(2-2/2)