#110159RTE YAML loader should support safe custom tags like !reset
Description
TYPO3’s YAML loader currently rejects Symfony YAML custom tags such as `!reset`.
Example (here for extending RTE Config):
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Default.yaml" }
editor:
config:
heading:
options: !reset
- { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' }
- { model: 'heading1', view: 'h1', title: 'Heading 1', class: 'ck-heading_heading1' }
- { model: 'heading2', view: 'h2', title: 'Heading 2', class: 'ck-heading_heading2' }
This fails with:
YamlParseException: Tags support is not enabled. You must use the flag "Yaml::PARSE_CUSTOM_TAGS" to use "!reset"
*Expected behavior*
RTE YAML presets should allow safe custom tags such as `!reset`, or TYPO3 should provide another documented way to replace imported list values.
*Proposed solution*
Enable safe custom tag parsing for RTE YAML presets, for example using:
Yaml::PARSE_CUSTOM_TAGS
or document an official alternative for resetting imported arrays/lists in RTE YAML configuration. But I think the goal should be to stay YAML and Symfony compatible here.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] RTE YAML loader should support safe custom tags like !reset Resolves: #110159 Releases: main