2 namespace TYPO3\CMS\Rtehtmlarea\Extension;
45 'textcolor' =>
'ForeColor',
46 'bgcolor' =>
'HiliteColor'
57 return parent::main($configuration)
58 &&
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'rtehtmlarea'][
'allowStyleAttribute'];
69 $jsArray[] =
'RTEarea[editornumber].disableColorPicker = ' . (trim($this->configuration[
'thisConfig'][
'disableColorPicker']) ?
'true' :
'false') .
';';
71 $HTMLAreaColorName = array();
72 if (is_array($this->configuration[
'RTEsetup'][
'properties'][
'colors.'])) {
73 foreach ($this->configuration[
'RTEsetup'][
'properties'][
'colors.'] as $colorName => $conf) {
74 $colorName = substr($colorName, 0, -1);
76 $HTMLAreaColorName[$colorName] = array($colorLabel, strtoupper(substr($conf[
'value'], 1, 6)));
80 if ($this->configuration[
'thisConfig'][
'colors']) {
82 $HTMLAreaJSColors = array();
83 foreach ($HTMLAreaColors as $colorName) {
84 if ($HTMLAreaColorName[$colorName]) {
85 $HTMLAreaJSColors[] = $HTMLAreaColorName[$colorName];
88 $jsArray[] =
'RTEarea[editornumber].colors = ' . json_encode($HTMLAreaJSColors) .
';';
90 return implode(LF, $jsArray);