Project

General

Profile

Actions

Bug #15761

closed

rte in frontend: size not properly configurable with typoscript

Added by Rafael Oliver over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2006-03-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

Updated by Stanislas Rolland over 18 years ago

Fixed in TYPO3core CVS branch TYPO3_4-0.

Actions #2

Updated by Rafael Oliver over 18 years ago

In version 1.2.0 of the rte this issue does not seem to be fixed.
I don't exactly remember where I've got it from but in version 1.3.7 it doesn't work either.

Actions #3

Updated by Stanislas Rolland over 18 years ago

This problem was fixed in version 1.3.0. Why do you say it is not? See the change log in the manual.

The invoking plugin needs to set $this->RTEObj->RTEWrapStyle

Actions #4

Updated by Stanislas Rolland over 18 years ago

The invoking plugin needs to be modified so that it sets $this->RTEObj->RTEWrapStyle based on some variable of its own TS configuration.

The RTE extension cannot do more than offer this feature to the author of the invoking plugin. There is no configuration of RTE in TS templates.

Actions

Also available in: Atom PDF