Skip to content
Snippets Groups Projects
Commit cd56e424 authored by Sybille Peters's avatar Sybille Peters Committed by Stefan Bürk
Browse files

[BUGFIX] Mark broken links in RTE again

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.

Resolves: #101357
Related: #96874
Related: #98497
Releases: main, 12.4
Change-...
parent abeb264f
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment