Issue Bug Closed

#101357Broken links are not marked in RTE anymore (affects linkvalidator and other extensions)

Sybille Peters 07/14/23, 18:29 updated 07/09/24, 14:15

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)

  1. install linkvalidator
  2. create one or more broken links
  3. check links with linkvalidator (linkvalidator module)
  4. 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.

Reviews 2