Feature #98074
openAdd class dropdown to regular linkbrowser
0%
Description
While the linkbrowser within CKeditor still offers a dropdown field for the class attribute, the "regular" linkbrowser (for typolink fields like tt_content.header_link
) only offers a simple input field:
- https://github.com/TYPO3/typo3/blob/main/typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php#L429
- https://github.com/TYPO3/typo3/blob/main/typo3/sysext/recordlist/Classes/Controller/AbstractLinkBrowserController.php#L493
For our BE users it's not comprehensible why there's a difference at all.
Updated by Riccardo De Contardi almost 2 years ago
- Related to Bug #92752: linkhandler don't show up all classes in linkbrowser added
Updated by Georg Ringer almost 2 years ago
- Status changed from New to Needs Feedback
thanks for creating the issue!
even though it is misleading I think the reason is that the classes can and should be set via styles dropdown of the RTE which can be configured far better than the one on the modal. therefore I would reject the issue, what do you think?
Updated by Philipp Kitzberger almost 2 years ago
Just to be clear: the RTE linkbrowser works fine ok. I'm talking about the non-RTE-linkbrowser.
IMO a field like tt_content.header_link
is providing "typolink" functionality which does include the class attribute as its 3rd (?) parameter. Thus, I think, the linkbrowser should offer a pre-configured list of classes instead of allowing the BE users to just enter whatever they want.
Updated by Christian Hackl about 1 month ago
I also think that all link browsers, whether TCA field or RTE, should work / look the same and be configurable...
It would be great if the NOT RTE link browser could get its own config.yaml in which you could configure your own CSS classes (just like the RTE link browser).
I wonder why there are 2 different ones anyway... Both actually do the same thing, why are there 2 different implementations here?
@Georg Ringer
For example, if you want to style links, then it is nicer for the editor if he can do everything at once - in one window (setting the link and its attributes).
If this is solved via the RTE style field, the editor must first set the link in the link browser and then select the correct class again in the RTE via the style select field. <- I find this a bit cumbersome.