Bug #17410 ยป rtehtmlarea_bugfix_5839.patch
typo3/sysext/rtehtmlarea/htmlarea/plugins/DynamicCSS/dynamiccss.js (working copy) | ||
---|---|---|
tagName, className, rule, k,
|
||
obj = editor.config.customSelects["DynamicCSS-class"];
|
||
newCssArray = cssArray;
|
||
|
||
for (rule = 0; rule < cssRules.length; rule++) {
|
||
// StyleRule
|
||
if (cssRules[rule].selectorText) {
|
||
... | ... | |
}
|
||
}
|
||
}
|
||
} else {
|
||
// ImportRule (Mozilla)
|
||
if (cssRules[rule].styleSheet) {
|
||
newCssArray = DynamicCSS.applyCSSRule(editor, i18n, cssRules[rule].styleSheet.cssRules, newCssArray);
|
||
}
|
||
// MediaRule (Mozilla)
|
||
if (cssRules[rule].cssRules) {
|
||
newCssArray = DynamicCSS.applyCSSRule(editor, i18n, cssRules[rule].cssRules, newCssArray);
|
||
}
|
||
}
|
||
// ImportRule (Mozilla)
|
||
else if (cssRules[rule].styleSheet){
|
||
newCssArray = DynamicCSS.applyCSSRule(editor, i18n, cssRules[rule].styleSheet.cssRules, newCssArray);
|
||
}
|
||
}
|
||
return newCssArray;
|
||
};
|
typo3/sysext/rtehtmlarea/htmlarea/plugins/InlineCSS/inlinecss.js (working copy) | ||
---|---|---|
}
|
||
}
|
||
}
|
||
} else {
|
||
// ImportRule (Mozilla)
|
||
if (cssRules[rule].styleSheet) {
|
||
newCssArray = InlineCSS.applyCSSRule(editor, i18n, cssRules[rule].styleSheet.cssRules, newCssArray);
|
||
}
|
||
// MediaRule (Mozilla)
|
||
if (cssRules[rule].cssRules) {
|
||
newCssArray = InlineCSS.applyCSSRule(editor, i18n, cssRules[rule].cssRules, newCssArray);
|
||
}
|
||
}
|
||
// ImportRule (Mozilla)
|
||
else if(cssRules[rule].styleSheet){
|
||
newCssArray = InlineCSS.applyCSSRule(editor,i18n,cssRules[rule].styleSheet.cssRules,newCssArray);
|
||
}
|
||
}
|
||
return newCssArray;
|
||
};
|