Project

General

Profile

Actions

Bug #102749

open

richtextConfiguration='default' is not overriden by RTE.default.preset = my_custom_rte

Added by Lina Wolf 5 months ago. Updated 4 months ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2024-01-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Oliver Bartsch 5 months 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

Actions #2

Updated by Lina Wolf 4 months 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

Actions #3

Updated by Oliver Bartsch 4 months 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).

Actions

Also available in: Atom PDF