Issue Bug Closed

#62930RTE maxWidth for magic images

Bernhard Kraft 11/13/14, 19:09 updated 10/02/18, 11:49

Description

The page TS-Config setting:

RTE.default.buttons.image.options.magic.maxWidth = 648

doesn’t currently not work. The reason is burried in the change to use FAL instead of previous handling of magic images. In the backend the RTE pageTS config is retrieved in “backend/Classes/Form/Element/TextElement.php”: https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/backend/Classes/Form/Element/TextElement.php#l86

The method “RTEsetup” in Backend utility retrieves the proper page TS config section:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/backend/Classes/Utility/BackendUtility.php#l3543

You see that it uses the section “RTE.default” while in the FAL new magic image just the page-TS-config “RTE” section is used:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/rtehtmlarea/Classes/Controller/ImageRenderingController.php#l126

I guess it would be sufficient to just directly use “.default” subsection. Maybe the “.FE” section should get overlaid but I assume the “.FE” section of RTEhtmlarea TS-Config is intended for FE editing.

Reviews 2