Bug #20268 » rtehtmlarea_bugfix_10834_follow_up_2_typo3_4-2.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/DefaultClean/default-clean.js (copie de travail) | ||
---|---|---|
var newc = node.className.replace(/(^|\s)mso.*?(\s|$)/ig,' ');
|
||
if(newc != node.className) {
|
||
node.className = newc;
|
||
if(!/\S/.test(node.className)) node.removeAttribute("className");
|
||
if(!/\S/.test(node.className)) {
|
||
if (!HTMLArea.is_opera) {
|
||
node.removeAttribute("class");
|
||
if (HTMLArea.is_ie) {
|
||
node.removeAttribute("className");
|
||
}
|
||
} else {
|
||
node.className = '';
|
||
}
|
||
}
|
||
}
|
||
}
|
||
function clearStyle(node) {
|