[BUGFIX] Respect richtextConfiguration set via TCA 93/61193/12
authorIoulia Kondratovitch <ik@plan2.net>
Sat, 29 Jun 2019 19:48:59 +0000 (21:48 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 9 Nov 2019 12:43:13 +0000 (13:43 +0100)
commit3669742d5a4a14ca52b186cd9dda4eaad84f32ea
tree5c76244f2efc35acbfc184f587d5c1ec36e9f5bb
parent39dd66d8343ce4067ead34557c75a82e9471a79f
[BUGFIX] Respect richtextConfiguration set via TCA

If richtextConfiguration is set via TCA for a specific text field
(e.g. for custom elements or within TCA-overrides),
respect the richtextConfiguration and prefer it over the general
RTE.default.preset

Removed 'richtextConfiguration' => 'default' from tt_content, since it is obsolete and breaks the logic of fallback.

New fallback order:
1. preset defined for a specific field via PageTS
2. richtextConfiguration defined for a specific field via TCA
3. general preset defined via PageTS
4. default

Resolves: #88655
Releases: master
Change-Id: I54271732ba862be4c05ccf62352ee685d72fb985
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61193
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Configuration/Richtext.php
typo3/sysext/core/Configuration/TCA/sys_news.php
typo3/sysext/core/Documentation/Changelog/master/Important-88655-ChangedLoadingOrderOfRTEConfiguration.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Configuration/RichtextTest.php
typo3/sysext/frontend/Configuration/TCA/tt_content.php