Bug #101357
Updated by Sybille Peters over 1 year ago
Seems to be the case since v12 * the event BrokenLinkAnalysisEvent is correctly dispatched in RteHtmlParser * $attributes['data-rte-error'] is set in RteHtmlParser * BUT, at some later point probably, the data-rte-error attribute is removed or it is not correctly added to the dom * also, the style is missing (css / sass) h2. Reproduce (simple, only using RTE) 1. # Insert this in the RTE in Source mode: <pre> <p><a data-rte-error="Broken link" href="https:/iambroken.org/yesreally">link</a></p> </pre> 2. # switch to wysiwyg mode The attribute data-rte-error is removed. This should not happen. h2. 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.