Actions
Bug #101357
closedEpic #99669: CKEditor5 Collection
Broken links are not marked in RTE anymore (affects linkvalidator and other extensions)
Status:
Closed
Priority:
Should have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2023-07-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Seems to be the case since v12
- the event BrokenLinkAnalysisEvent is correctly dispatched in RteHtmlParser
- $attributes['data-rte-error'] is set in RteHtmlParser
- BUT, the ckeditor removes the data-rte-error attribute
- also, the style is missing (css / sass)
Reproduce (simple, only using RTE)¶
1. Insert this in the RTE in Source mode:
<p><a data-rte-error="Broken link" href="https:/iambroken.org/yesreally">link</a></p>
2. switch to wysiwyg mode
The attribute data-rte-error is removed. This should not happen.
Reproduce (with linkvalidator)¶
- install linkvalidator
- create one or more broken links
- check links with linkvalidator (linkvalidator module)
- in list of broken links, click pencil icon
The broken links should now be marked in RTE with yellow background and red border. Also, if in source mode of RTE, you should see the attribute 'data-rte-error' in the "a" HTML elements for the broken links.
Actions