Bug #88858
closedRichtext configuration set in a flexform gets overwritten by RTE.default.preset
100%
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
Updated by Jan Kornblum over 5 years ago
- Description updated (diff)
- Category changed from FormEngine aka TCEforms to RTE (rtehtmlarea + ckeditor)
Updated by Daniel Kirsch about 5 years ago
- Tags set to rte
TYPO3 v9 also affected.
Easy example:
RTE { default.preset = full config { tx_news_domain_model_news.preset = minimal tt_content.type.textmedia.preset = default } }
Updated by Benni Mack about 5 years ago
Daniel Kirsch, the syntax you provided is not correct.
This is the correct syntax for regular fields:
RTE { default.preset = full config { # override for one field tt_content.bodytext.preset = normal # override for one field of a specific type tt_content.bodytext.types.textmedia.preset = minimal } }
Updated by Daniel Kirsch about 5 years ago
Thank you Benni Mack.
So I used an outdated snipped in the documentation: https://docs.typo3.org/c/typo3/cms-rte-ckeditor/master/en-us/Configuration/ConfigureTypo3.html#relevant-settings-for-rte-ckeditor
Updated by Gerrit Code Review about 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62251
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62220
Updated by Daniel Siepmann about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e89e1a5a1c08e4878e9182814d98895d75545ebf.
Updated by Benni Mack about 5 years ago
- Related to Bug #88655: richtextConfiguration, set via TCA for a text field is ignored added
Updated by Benni Mack about 5 years ago
- Status changed from Resolved to Accepted
I keep this open as this is currently not supported to override FlexForms via PageTS.
Updated by Jan Kornblum about 5 years ago
Thanks for fixing! So the first issue is fixed (custom flexform rte config won't get overwritten by global tsconfig any longer), but the second issue (overwrite rte config for flexform field by tsconfig) is still open?
Updated by Ioulia Kondratovitch about 5 years ago
I have found 2 mistakes and left my comments in the patch (can't set review = -1, since it's megred).
How to proceed? Are the comments enough or should I create a new ticket?
Daniel Siepmann wrote:
Applied in changeset e89e1a5a1c08e4878e9182814d98895d75545ebf.
Updated by Daniel Siepmann almost 5 years ago
@Ioulia Kondratovitch could you just provide another patch with your proposed changes?
Updated by Benni Mack over 4 years ago
Sorry, but someone(tm) need to open up a new issue for the left-over changes, so we can provide a new patch
Updated by Jan Kornblum over 4 years ago
Opened a new issue for this: https://forge.typo3.org/issues/91690
Updated by Jan Kornblum over 4 years ago
- Related to Feature #91690: Override Flexform via Page TsConfig added
Updated by Jan Kornblum over 4 years ago
- Related to Feature #91690: Override Flexform via Page TsConfig added
Updated by Jan Kornblum over 4 years ago
- Related to deleted (Feature #91690: Override Flexform via Page TsConfig)
Updated by Georg Ringer 6 months ago
- Status changed from Accepted to Resolved
closing this issue as for the leftover, #91690 is already here, no need to have 2 issues for that