Project

General

Profile

Actions

Bug #104157

closed

Link Browser of TCA link fields and RTE links differs in link options

Added by Julian Mair 9 days ago. Updated 1 day ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2024-06-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #101711: document classesAnchor for rte_ckeditorResolvedGarvin Hicking2023-08-18

Actions
Actions #1

Updated by Jasmina Ließmann 9 days 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

Actions #2

Updated by Julian Mair 5 days 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.

Actions #3

Updated by Gerrit Code Review 4 days 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

Actions #4

Updated by Garvin Hicking 4 days ago

I'd be happy for anyone proof-reading my findings in the patch above :-)

Actions #5

Updated by Sybille Peters 2 days ago

  • Related to Task #101711: document classesAnchor for rte_ckeditor added
Actions #6

Updated by Gerrit Code Review 2 days 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

Actions #7

Updated by Gerrit Code Review 2 days 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

Actions #8

Updated by Gerrit Code Review 1 day 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

Actions #9

Updated by Garvin Hicking 1 day ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF