Review 12.4 Merged

80892[BUGFIX] Mark broken links in RTE again

Stefan Bürk CR +2 V +2 Easy +28 −2 updated 09/07/23, 06:55

Commit message

The possibility to mark broken links with the `data-rte-error`
attribute and styling was removed in TYPO3 v12.

This is now added again to allow for linkvalidator and other
extensions to mark broken links which will then be visibly
styled differently when editing in the RTE.

This affects only the backend. The attribute data-rte-error is
removed when persisting the content to the database.

The logic for adding this attribute is still in place:
The linkvalidator uses the event `BrokenLinkAnalysisEvent`
which is dispatched in `RteHtmlParser`.

A marked broken link may look like this:

```html
<a href="t3://page?uid=42"
  data-rte-error="External link is broken">link</a>
```

Note that the functionality got disabled with the new ckeditor
in #96874 while the implementing plugin "showbrokenlinks" was
removed later with #98497. The CSS is therefore restored from
the state as of before #98497.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 3