#102749richtextConfiguration='default' is not overriden by RTE.default.preset = my_custom_rte
Description
For example when the following is set:
$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘bodytext’][‘config’][‘richtextConfiguration’]=‘default’;
The tsconfig
RTE.default.preset = my_custom_rte
Takes no effect but you have to override it using
RTE.config.tt_content.bodytext.preset = my_custom_rte
As RTE.default.preset is supposed to override the default preset, I would expect the first tsconfig statement to work.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 4
-
Oliver Bartsch commented and changed status
NewNeeds Feedback 01/04/24, 13:02 -
Lina Wolf commented 01/08/24, 08:13
This then means that I cannot use RTE.default.preset to override the preset “default” on a per site basis in a multi site installation? I find that quite counte-intuitive…
Greetings Lina
-
Oliver Bartsch commented 01/08/24, 10:25
Sure you can. But as soon as you specify a preset on a per column basis in TCA, this has to be overriden via the specific field TSconfig (which can also be done on a per site basis as it’s page TSconfig).
-
Georg Ringer commented and changed status
Needs FeedbackClosed 06/20/24, 09:26I am closing this issue as it the solution by Oli seems to be fine. @Lina feel free to contact me on slack if you need further help!
To my understanding this is the correct behaviour according to the docs https://docs.typo3.org/c/typo3/cms-rte-ckeditor/main/en-us/Configuration/Examples.html.
RTE.default.preset“just” defines the default preset, in case non is set via TCA or TSconfig for a specific field. As soon as you define a specific preset for a field in TCA, it has to be overridden using the corresponding field specific TSconfig syntax.Best, Oli