Project

General

Profile

Bug #21578 » rtehtmlarea_bugfix_12622_typo3_4-2.patch

Administrator Admin, 2009-11-17 01:23

View differences:

typo3/sysext/rtehtmlarea/htmlarea/htmlarea-gecko.js (copie de travail)
if (!HTMLArea.is_opera) {
p.innerHTML = "<br />";
}
if(/^li$/i.test(p.nodeName) && left_empty && !block.nextSibling) {
left = block.parentNode;
left.removeChild(block);
range.setEndAfter(left);
range.collapse(false);
p = this.convertNode(p, /^(li|dd|td|th)$/i.test(left.parentNode.nodeName) ? "br" : "p");
}
}
if(/^li$/i.test(p.nodeName) && left_empty && !block.nextSibling) {
left = block.parentNode;
left.removeChild(block);
range.setEndAfter(left);
range.collapse(false);
p = this.convertNode(p, /^(li|dd|td|th)$/i.test(left.parentNode.nodeName) ? "br" : "p");
}
range.insertNode(df);
// Remove any anchor created empty
if (p.previousSibling) {
(2-2/2)