50 'textcolor' =>
'ForeColor',
51 'bgcolor' =>
'HiliteColor' 54 public function main($parentObject) {
55 return parent::main($parentObject) &&
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'rtehtmlarea'][
'allowStyleAttribute'];
67 return $registerRTEinJavascriptString;
78 if ($this->htmlAreaRTE->is_FE()) {
79 $RTEProperties = $this->htmlAreaRTE->RTEsetup;
81 $RTEProperties = $this->htmlAreaRTE->RTEsetup[
'properties'];
83 $configureRTEInJavascriptString =
'';
84 $configureRTEInJavascriptString .=
' 85 RTEarea[' . $RTEcounter .
'].disableColorPicker = ' . (trim($this->thisConfig[
'disableColorPicker']) ?
'true' :
'false') .
';';
87 if (is_array($RTEProperties[
'colors.'])) {
88 $HTMLAreaColorname = array();
89 foreach ($RTEProperties[
'colors.'] as $colorName => $conf) {
90 $colorName = substr($colorName, 0, -1);
91 $colorLabel = $this->htmlAreaRTE->getPageConfigLabel($conf[
'name'], 0);
92 $HTMLAreaColorname[$colorName] = array($colorLabel, strtoupper(substr($conf[
'value'], 1, 6)));
96 if ($this->thisConfig[
'colors']) {
98 $HTMLAreaJSColors = array();
99 foreach ($HTMLAreaColors as $colorName) {
100 if ($HTMLAreaColorname[$colorName]) {
101 $HTMLAreaJSColors[] = $HTMLAreaColorname[$colorName];
104 if ($this->htmlAreaRTE->is_FE()) {
105 $GLOBALS[
'TSFE']->csConvObj->convArray($HTMLAreaJSColors, $this->htmlAreaRTE->OutputCharset,
'utf-8');
107 $configureRTEInJavascriptString .=
' 108 RTEarea[' . $RTEcounter .
'].colors = ' . json_encode($HTMLAreaJSColors) .
';';
110 return $configureRTEInJavascriptString;
buildJSColorsConfig($RTEcounter)
static trimExplode($delim, $string, $removeEmptyValues=FALSE, $limit=0)
buildJavascriptConfiguration($RTEcounter)
$convertToolbarForHtmlAreaArray
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
$relativePathToLocallangFile