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)
403 403
				if (cssClass == 'none') {
404 404
					store.getAt(0).set('text', cssArray[cssClass]);
405 405
				} else {
406
					var style = null;
407
					if (!this.editor.config.disablePCexamples) {
408
						if (HTMLArea.classesValues[cssClass] && !HTMLArea.classesNoShow[cssClass]) {
409
							style = HTMLArea.classesValues[cssClass];
410
						} else if (/-[0-9]+$/.test(cssClass) && HTMLArea.classesValues[RegExp.leftContext + '-'])  {
411
							style = HTMLArea.classesValues[RegExp.leftContext + '-'];
412
						}
413
					}
406 414
					store.add(new store.recordType({
407 415
						text: cssArray[cssClass],
408 416
						value: cssClass,
409
						style: (!this.editor.config.disablePCexamples && HTMLArea.classesValues && HTMLArea.classesValues[cssClass] && !HTMLArea.classesNoShow[cssClass]) ? HTMLArea.classesValues[cssClass] : null
417
						style: style
410 418
					}));
411 419
				}
412 420
			}
    (1-1/1)