[BUGFIX] RTE maxWidth for magic images 02/34102/2
authorBernhard Kraft <kraft@webconsulting.at>
Thu, 13 Nov 2014 18:10:41 +0000 (19:10 +0100)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 18 Nov 2014 05:00:32 +0000 (06:00 +0100)
The "maxWidth" TS config setting for RTE magic images does not work
after the change in rtehtmlarea to use FAL. Instead of the TS config
section "RTE.default.buttons" the section "RTE.buttons" is
consolidated - which is wrong.

Change-Id: I65abf958bfcab47965476b20c1265052544f7853
Resolves: #62930
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/34102
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
typo3/sysext/rtehtmlarea/Classes/Controller/ImageRenderingController.php

index 336da3f..7b15334 100644 (file)
@@ -123,8 +123,8 @@ class ImageRenderingController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 
                // Get RTE configuration
                $pageTSConfig = $this->getFrontendObject()->getPagesTSconfig();
-               if (is_array($pageTSConfig) && is_array($pageTSConfig['RTE.'])) {
-                       $magicImageService->setMagicImageMaximumDimensions($pageTSConfig['RTE.']);
+               if (is_array($pageTSConfig) && is_array($pageTSConfig['RTE.']['default.'])) {
+                       $magicImageService->setMagicImageMaximumDimensions($pageTSConfig['RTE.']['default.']);
                }
 
                return $magicImageService;