Project

General

Profile

Bug #20633 » rtehtmlarea_bugfix_11362_trunk.patch

Administrator Admin, 2009-11-16 01:30

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (copie de travail)
// Remove any anchor created empty
if (p.previousSibling) {
var a = p.previousSibling.lastChild;
if (a && /^a$/i.test(a.nodeName) && !/\S/.test(a.innerHTML)) HTMLArea.removeFromParent(a);
if (a && /^a$/i.test(a.nodeName) && !/\S/.test(a.innerHTML)) {
if (HTMLArea.is_opera) {
this.removeMarkup(a);
} else {
HTMLArea.removeFromParent(a);
}
}
if (!/\S/.test(p.previousSibling.textContent) && !HTMLArea.is_opera) {
p.previousSibling.innerHTML = "<br />";
}
}
if (/^br$/i.test(p.nodeName)) {
p = p.parentNode.insertBefore(this._doc.createTextNode("\x20"), p);
(1-1/2)