#102053ckeditor - fixAttrib.class.default of A-link not applied when link is inside a list element
Description
Hi,
this is a follow up to this old closed issue : #92756
When I set this in YAML, the class is not applied to the tag inside an
processing:
HTMLparser_db:
tags:
a:
fixAttrib:
class:
default: external-link
I’ve simply fixed this by adding “ul” to the switch/case test of block elements in TYPO3\CMS\Core\Html\RteHtmlParser::TS_transform_db
I don’t know if it’s the right way, please find the attached patch to review.
Reviews 1
Related issues 1
Files 1
History 57
-
RVVN no-lastname-given changed subject
ckeditor - fixAttrib.class.default of A-link not applied when link is inside listckeditor - fixAttrib.class.default of A-link not applied when link is inside a list element <span data-processor="relativetime" data-value="2023-09-27T18:41:00+00:00" > 09/27/23, 18:41 </span> -
Georg Ringer changed Related to #92756 <span data-processor="relativetime" data-value="2023-09-28T04:47:05+00:00" > 09/28/23, 04:47 </span>
-
RVVN no-lastname-given commented <span data-processor="relativetime" data-value="2023-09-28T07:04:56+00:00" > 09/28/23, 07:04 </span>
I set the TYPO3 version in the issue metadata so I didn’t mention it but I only test this fix on TYPO3v11.5.31.
Just tested it now again, with- tag too (I forgot to add this tag in the patch), and the whole HTML is preserved.
I don’t have access to a TYPO3v12+ version atm.
Does the fixAttrib.class.default of A-link when link is inside a list element work on master ?
If yes, it could be a lead to a better fix covering all versions. -
Benjamin Franzke changed parent task #99669 <span data-processor="relativetime" data-value="2023-09-28T20:35:57+00:00" > 09/28/23, 20:35 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97610 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T11:57:59+00:00" > 11/13/26, 11:57 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97610 <span data-processor="relativetime" data-value="2026-11-13T20:33:15+00:00" > 11/13/26, 20:33 </span>
tested this in master (V13) and if added ul/ol there, after saving the whole UL is gone?!