Issue Bug Closed

#88858Richtext configuration set in a flexform gets overwritten by RTE.default.preset

Jan Kornblum 07/30/19, 00:36 updated 07/09/24, 12:00

Description

A richtext configuration is set in a flexform (attached to pi_flexform) field:

<settings.anyRichtextField>
    <exclude>1</exclude>
    <label>Custom RTE enabled field</label>
    <config>
        <type>text</type>
        <rows>5</rows>
        <cols>30</cols>
        <eval>trim,required</eval>
        <enableRichtext>1</enableRichtext>
        <richtextConfiguration>custom_config</richtextConfiguration>
    </config>
</settings.anyRichtextField>

As long as no global RTE preset is set anywhere else, the configuration is loaded fine. But as soon as…

RTE.default.preset = minimal

…is set anywhere else, the per-flexform-field rte configuration gets ignored. Also, it is not possible to explicitly set the preset by tsconfig like this additionally…

TCEFORM.[tableName].[fieldName].[dataStructureKey].[flexSheet].[flexFieldName].[propertyName] 

…due to limitations of the “config” section mentioned here: https://docs.typo3.org/m/typo3/reference-tsconfig/master/en-us/PageTsconfig/TceForm.html

Reviews 2