Bug #20268 » rtehtmlarea_bugfix_10834_typo3_4-1.patch
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.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)) {
|
||
node.removeAttribute("class");
|
||
if (HTMLArea.is_ie) {
|
||
node.removeAttribute("className");
|
||
}
|
||
}
|
||
}
|
||
}
|
||
function clearStyle(node) {
|
||
... | ... | |
if (cls[--i] != removeClassName) ar[ar.length] = cls[i];
|
||
}
|
||
if (ar.length == 0) {
|
||
if (!HTMLArea.is_opera) el.removeAttribute(HTMLArea.is_gecko ? "class" : "className");
|
||
else el.className = '';
|
||
if (!HTMLArea.is_opera) {
|
||
el.removeAttribute("class");
|
||
if (HTMLArea.is_ie) {
|
||
el.removeAttribute("className");
|
||
}
|
||
} else {
|
||
el.className = '';
|
||
}
|
||
} else el.className = ar.join(" ");
|
||
};
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js (copie de travail) | ||
---|---|---|
}
|
||
// In IE, the above fails to update the classname and style attributes.
|
||
if (HTMLArea.is_ie) {
|
||
if (element.style.cssText) newCell.style.cssText = element.style.cssText;
|
||
if (element.style.cssText) {
|
||
newCell.style.cssText = element.style.cssText;
|
||
}
|
||
if (element.className) {
|
||
newCell.setAttribute("className", element.className);
|
||
} else {
|
||
newCell.className = element.className;
|
||
newCell.setAttribute("class", element.className);
|
||
if (!newCell.className) {
|
||
// IE before IE8
|
||
newCell.setAttribute("className", element.className);
|
||
}
|
||
} else {
|
||
newCell.removeAttribute("class");
|
||
// IE before IE8
|
||
newCell.removeAttribute("className");
|
||
}
|
||
}
|
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »