Project

General

Profile

Feature #21893 ยป rtehtmlarea_feature_13116.patch

Administrator Admin, 2010-04-12 19:28

View differences:

typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockStyle/block-style.js (copie de travail)
if (cssClass == 'none') {
store.getAt(0).set('text', cssArray[cssClass]);
} else {
var style = null;
if (!this.editor.config.disablePCexamples) {
if (HTMLArea.classesValues[cssClass] && !HTMLArea.classesNoShow[cssClass]) {
style = HTMLArea.classesValues[cssClass];
} else if (/-[0-9]+$/.test(cssClass) && HTMLArea.classesValues[RegExp.leftContext + '-']) {
style = HTMLArea.classesValues[RegExp.leftContext + '-'];
}
}
store.add(new store.recordType({
text: cssArray[cssClass],
value: cssClass,
style: (!this.editor.config.disablePCexamples && HTMLArea.classesValues && HTMLArea.classesValues[cssClass] && !HTMLArea.classesNoShow[cssClass]) ? HTMLArea.classesValues[cssClass] : null
style: style
}));
}
}
    (1-1/1)