2008-09-01 Stanislas Rolland <typo3@sjbr.ca>
* Fixed bug #9261: Indentation set with div section in htmlArea RTE is not rendered correctly in FE
+ * Added feature #8668: Configurable labels for formatblock items in htmlArea RTE
2008-09-01 Dmitry Dulepov <dmitry@typo3.org>
+2008-09-01 Stanislas Rolland <typo3@sjbr.ca>
+
+ * Added feature #8668: Configurable labels for formatblock items in htmlArea RTE
+
2008-08-30 Stanislas Rolland <typo3@sjbr.ca>
* Fixed bug #9255: External URLs cannot be set in RTEhtmlarea anymore
// Localizing the options
$blockElementsOptions = array();
if ($this->htmlAreaRTE->cleanList($this->thisConfig['hidePStyleItems']) != '*') {
+ $labels = array();
+ if (is_array($this->thisConfig['buttons.'])
+ && is_array($this->thisConfig['buttons.']['formatblock.'])
+ && is_array($this->thisConfig['buttons.']['formatblock.']['items.'])) {
+ $labels = $this->thisConfig['buttons.']['formatblock.']['items.'];
+ }
foreach ($blockElementsOrder as $item) {
if ($this->htmlAreaRTE->is_FE()) {
$blockElementsOptions[$item] = $TSFE->getLLL($this->defaultBlockElements[$item],$this->LOCAL_LANG);
} else {
$blockElementsOptions[$item] = $LANG->getLL($this->defaultBlockElements[$item]);
}
+ // Getting custom labels
+ if (is_array($labels[$item.'.']) && $labels[$item.'.']['label']) {
+ $blockElementsOptions[$item] = $this->htmlAreaRTE->getPageConfigLabel($labels[$item.'.']['label'], 0);
+ }
$blockElementsOptions[$item] = (($prefixLabelWithTag && $item != 'none')?($item . ' - '):'') . $blockElementsOptions[$item] . (($postfixLabelWithTag && $item != 'none')?(' - ' . $item):'');
}
}