Project

General

Profile

Bug #21840 » rtehtmlarea_bugfix_13007_typo3_4-3.patch

Administrator Admin, 2009-12-11 03:42

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (copie de travail)
first.innerHTML = "<br />";
this.editor.selectNodeContents(first,true);
} else {
// parentElement may be removed by following command
var parentNode = parentElement.parentNode;
try {
this.editor._doc.execCommand(buttonId, false, null);
} catch(e) {
this.appendToLog("onButtonPress", e + "\n\nby execCommand(" + buttonId + ");");
}
if (HTMLArea.is_safari) {
this.cleanAppleSpanTags(parentElement);
this.editor.cleanAppleStyleSpans(parentNode);
}
}
},
......
},
/*
* Clean Apple span tags
*/
cleanAppleSpanTags : function(element) {
var spans = element.getElementsByTagName("span");
for (var i = spans.length; --i >= 0;) {
if (HTMLArea._hasClass(spans[i], "Apple-style-span")) {
this.editor.removeMarkup(spans[i]);
}
}
},
/*
* Make XHTML-compliant nested list
* We need this for Opera
*/
(2-2/2)