Skip to content
Snippets Groups Projects
Commit e396bb4a authored by Bernhard Kraft's avatar Bernhard Kraft Committed by Stanislas Rolland
Browse files

[BUGFIX] RTE maxWidth for magic images

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: default avatarStanislas Rolland <typo3@sjbr.ca>
Tested-by: default avatarStanislas Rolland <typo3@sjbr.ca>
parent b4d2b378
Branches
Tags
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment