Bug #84987

Updated by Sybille Peters over 1 year ago

With the old rtehtmlarea broken links (at least page links which linked to not existing page) where displayed differently with a red border and yellow background.


The If using ckeditor, the broken links are apparently already marked with an additional attribute (see RteHtmlParser::markBrokenLinks): attribute:

<pre><code class="html">
<a <p><a data-rte-error="Page with ID 5555555 not found" href="t3://page?uid=5555555">page link</a> link</a></p>

If css for <a> elements with this attribute are added in the contents.css in rte_ckeditor, the broken links could be visually displayed as broken links.

The style that is added in markBrokenLinks is probably removed by ckeditor. Also, it seems like a better solution to do this in css (which is also configurable in rte_ckeditor via Yaml).