Bug #102749
closedrichtextConfiguration='default' is not overriden by RTE.default.preset = my_custom_rte
0%
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.
Updated by Oliver Bartsch about 1 year ago
- Status changed from New to Needs Feedback
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
Updated by Lina Wolf about 1 year ago
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
Updated by Oliver Bartsch about 1 year ago
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).
Updated by Georg Ringer 7 months ago
- Status changed from Needs Feedback to Closed
I 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!