Project

General

Profile

Bug #21513 » rtehtmlarea_bugfix_12534_typo3_4-2.patch

Administrator Admin, 2009-11-10 05:45

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js (copie de travail)
var spans = element.getElementsByTagName("span");
for (var i = spans.length; --i >= 0;) {
if (HTMLArea._hasClass(spans[i], "Apple-style-span")) {
HTMLArea.removeFromParent(spans[i]);
this.removeMarkup(spans[i]);
}
}
},
/*
* This function removes the given markup element
*/
removeMarkup : function(element) {
var bookmark = this.editor.getBookmark(this.editor._createRange(this.editor._getSelection()));
var parent = element.parentNode;
while (element.firstChild) {
parent.insertBefore(element.firstChild, element);
}
parent.removeChild(element);
this.editor.selectRange(this.editor.moveToBookmark(bookmark));
},
/*
* Make XHTML-compliant nested list
(2-2/2)