77 public function drawRTE(&$pObj, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue) {
79 $value = $this->
transformContent(
'rte', $PA[
'itemFormElValue'], $table, $field, $row, $specConf, $thisConfig, $RTErelPath, $thePidValue);
83 <textarea name="' . htmlspecialchars($PA[
'itemFormElName']) .
'"' . $pObj->formWidthText(
'48',
'off') .
' rows="20" wrap="off" style="background-color: #99eebb;">' .
GeneralUtility::formatForTextarea($value) .
'</textarea>';
106 public function transformContent($dirRTE, $value, $table, $field, $row, $specConf, $thisConfig, $RTErelPath, $pid) {
107 if ($specConf[
'rte_transform']) {
113 $parseHTML->init($table .
':' . $field, $pid);
114 $parseHTML->setRelPath($RTErelPath);
116 $value = $parseHTML->RTE_transform($value, $specConf, $dirRTE, $thisConfig);
135 $triggerFieldName = preg_replace(
'/\\[([^]]+)\\]$/',
'[_TRANSFORM_\\1]', $fieldName);
136 return '<input type="hidden" name="' . htmlspecialchars($triggerFieldName) .
'" value="RTE" />';
static formatForTextarea($content)
drawRTE(&$pObj, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue)
static makeInstance($className)
transformContent($dirRTE, $value, $table, $field, $row, $specConf, $thisConfig, $RTErelPath, $pid)
static getSpecConfParametersFromArray($pArr)