[TYPO3-core] FYI: Feature #3633: Individual height of inline RTE

Ralf Hettinger ng at ralfhettinger.de
Wed Jan 30 08:54:55 CET 2008


Thanks a lot, Stanislas!

Stanislas Rolland schrieb:
> FYI: The attached SVN patch was committed.
> 
> Type:
> Feature
> 
> Problem:
> The content of certain RTE-editable fields should not be exceedingly
> long or should not contain more than one line (eg for fields that need
> to be be RTE-editable but are actually used as titles or headers)
> 
> Solution:
> Introduce new Page TS Config property RTEHeightOverride, which allows to
> give certain RTE fields a specific height.
> 
> Bugtracker reference:
> http://bugs.typo3.org/view.php?id=3633
> 
> Notes:
> Thanks to Ralf Hettinger.
> 
> Branches:
> Trunk
> 
> Regards,
> Stanislas
> 
> 
> ------------------------------------------------------------------------
> 
> Index: typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
> ===================================================================
> --- typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php	(revision 2975)
> +++ typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php	(working copy)
> @@ -372,6 +372,8 @@
>  			$RTEWidth  = $RTEWidth + ($this->TCEform->docLarge ? (isset($BE_USER->userTS['options.']['RTELargeWidthIncrement']) ? $BE_USER->userTS['options.']['RTELargeWidthIncrement'] : '150') : 0);
>  			$RTEWidth -= ($inline->getStructureDepth() > 0 ? ($inline->getStructureDepth()+1)*$inline->getLevelMargin() : 0);
>  			$RTEHeight = $RTEHeight + ($this->TCEform->docLarge ?  (isset($BE_USER->userTS['options.']['RTELargeHeightIncrement']) ? $BE_USER->userTS['options.']['RTELargeHeightIncrement'] : 0) : 0);
> +			$RTEHeightOverride = intval($this->thisConfig['RTEHeightOverride']);
> +			$RTEHeight = ($RTEHeightOverride > 0) ? $RTEHeightOverride : $RTEHeight;
>  			$editorWrapWidth = $RTEWidth . 'px';
>  			$editorWrapHeight = $RTEHeight . 'px';
>  			$this->RTEdivStyle = 'position:relative; left:0px; top:0px; height:' . $RTEHeight . 'px; width:'.$RTEWidth.'px; border: 1px solid black; padding: 2px 0px 2px 2px;';
> Index: typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php
> ===================================================================
> --- typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php	(revision 2975)
> +++ typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php	(working copy)
> @@ -213,6 +213,8 @@
>  		 
>  		$RTEWidth = 460+($this->TCEform->docLarge ? 150 : 0);
>  		$RTEHeight = 380;
> +		$RTEHeightOverride = intval($this->thisConfig['RTEHeightOverride']);
> +		$RTEHeight = ($RTEHeightOverride > 0) ? $RTEHeightOverride : $RTEHeight;
>  		$editorWrapWidth = $RTEWidth . 'px';
>  		$editorWrapHeight = $RTEHeight . 'px';
>  		$this->RTEWrapStyle = $this->RTEWrapStyle ? $this->RTEWrapStyle : ($this->RTEdivStyle ? $this->RTEdivStyle : ('height:' . ($RTEHeight+2) . 'px; width:'. ($RTEWidth+2) . 'px;'));		


More information about the TYPO3-team-core mailing list