Bug #15761
closedrte in frontend: size not properly configurable with typoscript
0%
Description
I can configure the size of the rte with typoscript with something like this:
RTEdivStyle_news = width: 430px; height: 250px;
However, this only changes the size of the rte area but not of the editorWrap div that's around the rte which is hardcoded in pi2/class.tx_rtehtmlare_p12.php.
See "Additional Information" for a solution (at least it works for me)
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlare_p12.php
Line 277:
// changed to take height of rte into account for wraper div
$item = $this->triggerField($PA['itemFormElName']).'
<div id="pleasewait' . $pObj->RTEcounter . '" class="pleasewait">' . $GLOBALS['TSFE']->csConvObj->conv($GLOBALS['TSFE']->getLLL('Please wait',$this->LOCAL_LANG), $this->charset, $GLOBALS['TSFE']->renderCharset) . '</div>
<div id="editorWrap' . $pObj->RTEcounter . '" class="editorWrap" style="visibility:' . $visibility . '; '.$this->RTEdivStyle.'">
<textarea id="RTEarea'.$pObj->RTEcounter.'" name="'.htmlspecialchars($PA['itemFormElName']).'" style="'.htmlspecialchars($this->RTEdivStyle).'">'.t3lib_div::formatForTextarea($value).'</textarea>
(issue imported from #M2760)