2009-09-03 Stanislas Rolland <typo3@sjbr.ca>
* Updated htmlArea RTE version to 1.8.3 for TYPO3 4.3beta1
+ * Fixed bug #11863: htmlArea RTE: css syntax errors in language marks feature
2009-09-02 Ingo Renner <ingo@typo3.org>
var options = select.options;
var rule, selector, style;
for (var i = options.length; --i >= 0;) {
- selector = 'body.htmlarea-show-language-marks *[' + (this.useAttribute.lang ? 'lang=' : 'xml:lang=') + options[i].value + ']:before';
- style = 'content: "' + options[i].value + ': "';
- rule = selector + ' { ' + style + '; }';
+ selector = 'body.htmlarea-show-language-marks *[' + 'lang="' + options[i].value + '"]:before';
+ style = 'content: "' + options[i].value + ': ";';
+ rule = selector + ' { ' + style + ' }';
if (HTMLArea.is_gecko) {
- styleSheet.insertRule(rule, styleSheet.cssRules.length);
+ try {
+ styleSheet.insertRule(rule, styleSheet.cssRules.length);
+ } catch (e) {
+ this.appendToLog("onGenerate", "Error inserting css rule: " + rule + " Error text: " + e);
+ }
} else {
styleSheet.addRule(selector, style);
}
body.htmlarea-show-language-marks *[lang] {
background: url("images/language-marker.gif") left bottom no-repeat; padding-left: 14px; text-decoration: underline;
}
-body.htmlarea-show-language-marks *[xml:lang] {
- background-image: url("images/language-marker.gif"); background-position: left bottom; background-repeat: no-repeat; padding-left: 14px; text-decoration: underline;
-}
/* Selectors for the Abbreviation plugin */
body.htmlarea-content-body abbr, body.htmlarea-content-body acronym {
body.htmlarea-show-language-marks *[lang] {
background: url("images/language-marker.gif") left bottom no-repeat; padding-left: 14px; text-decoration: underline;
}
-body.htmlarea-show-language-marks *[xml:lang] {
- background-image: url("images/language-marker.gif"); background-position: left bottom; background-repeat: no-repeat; padding-left: 14px; text-decoration: underline;
-}
/* Selectors for the Abbreviation plugin */
body.htmlarea-content-body abbr, body.htmlarea-content-body acronym {