Bug #81381
closedRTE TSConfig is lost when using own CKEditor preset
100%
Description
When setting your own CKEditor preset RTE TSConfig configuration is lost. This result in not being able to configure CSS classes for LinkHandlers via TSConfig. I debugged this down to
\TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController which depends on TSConfig-arrays retrieved by \TYPO3\CMS\Core\Configuration\Richtext.
Responsible for this behavior (losing the TSConfig configuration) is \TYPO3\CMS\Core\Configuration\Richtext->getConfiguration(). The whole configuration array is overwritten by the parsed custom preset YAML file.
A workaround is to emulate a TSConfig-like array in your YAML preset to add configuration which would usually be found in TSConfig (RTE.*, RTE.default):
imports: ... editor: ... "buttons.": "link.": "page.": "properties.": "class.": default: 'somecssclass' "properties.": "class.": allowedClasses: 'somecssclass' "classesAnchor.": "linkIconPage.": "class": "somecssclass" "type": "page" "classes.": "somecssclass.": "name": "Some CSS class label"
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481
Updated by Frans Saris over 7 years ago
- Has duplicate Bug #80971: How to define custom class, title, and target in Link Browser for content elements and the new rte_ckeditor? added
Updated by Hannes Lau over 7 years ago
- Related to Task #81882: ckeditor configuration: Allow to override presets with PageTSConfig added
Updated by Riccardo De Contardi about 7 years ago
- Related to Bug #81880: ckeditor: Editor configuration cannot be overridden via PageTS added
Updated by Gerrit Code Review about 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481
Updated by Gerrit Code Review about 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53481
Updated by Gerrit Code Review about 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54243
Updated by Frans Saris about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ca643e75068732a35ca98b180bc7399d53bb1d55.
Updated by Frans Saris about 7 years ago
- Has duplicate Bug #82865: Custom link attributes not working on rte_ckeditor added