Bug #104157
closedLink Browser of TCA link fields and RTE links differs in link options
100%
Description
The link browser on a TCA link field and a link in RTE have different attributes (like css classes and additional link parameters).
Are there some options to enable them, so both have all possible attributes? Or is this a bug?
Files
Updated by Jasmina Ließmann 3 months ago · Edited
- Category set to RTE (rtehtmlarea + ckeditor)
- Status changed from New to Needs Feedback
The fields visible for the RTE can be controlled via the Yaml configuration of your sitepackage/extension. For example, to display the "Additional link parameters" field, the following option must be activated:
https://docs.typo3.org/p/friendsoftypo3/rtehtmlarea/main/en-us//Configuration/PageTsconfig/interfaceConfiguration/Index.html#buttons-link-queryparameterselector-enabled
If CSS classes are to be available to the editor, these must be defined in the Yaml configuration. See https://docs.typo3.org/p/friendsoftypo3/rtehtmlarea/main/en-us//Configuration/PageTsconfig/interfaceConfiguration/Index.html#buttons-link-properties-class-allowedclasses and following.
Here you can also define whether CSS classes should appear for all link types or only for individual link types. A standard class can also be preselected if the editor has several link classes available (see also: https://docs.typo3.org/p/friendsoftypo3/rtehtmlarea/main/en-us/Configuration/PageTsconfig/classesAnchor/Index.html).
Fields in the FormEngine link field can be displayed or hidden using TCA:
https://docs.typo3.org/m/typo3/reference-tca/12.4/en-us/ColumnsConfig/Type/Link/Properties/Appearance.html#columns-link-properties-appearance
Updated by Julian Mair 3 months ago
Thank you for your guidance.
However, these links all refer to the friendsoftypo3/rtehtmlarea extension (which is the predecessor of CKEditor).
The "Additional link parameters" field could be adjusted, but there are no corresponding settings for the CSS classes.
And as far as I understand it, for the link browser from the RTE, there is no possibility to allow any custom classes, only exclusively defined ones inside the config.yaml.
Updated by Gerrit Code Review 2 months ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84921
Updated by Garvin Hicking 2 months ago
I'd be happy for anyone proof-reading my findings in the patch above :-)
Updated by Sybille Peters 2 months ago
- Related to Task #101711: document classesAnchor for rte_ckeditor added
Updated by Gerrit Code Review 2 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84921
Updated by Gerrit Code Review 2 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84921
Updated by Gerrit Code Review 2 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84953
Updated by Garvin Hicking 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 70897a0cbc705a783ee946c59ffd5acccafeda1d.
Updated by Garvin Hicking 2 months ago
- Related to Bug #92752: linkhandler don't show up all classes in linkbrowser added
Updated by Garvin Hicking 2 months ago
- Related to Feature #98074: Add class dropdown to regular linkbrowser added
Updated by Benni Mack about 2 months ago
- Status changed from Resolved to Closed