Project

General

Profile

Bug #84987

Updated by Sybille Peters over 6 years 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. This is no longer working with ckeditor. 

 !links.png! 

 The broken links are apparently already marked with an additional attribute (see RteHtmlParser::markBrokenLinks): 

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

 If CSS 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 ('background-color: yellow; border:2px red solid; color: black;') that is added in RteHtmlParser::markBrokenLinks is probably removed by ckeditor. Also, it seems like a better solution to do this in a seperate CSS file (which is also configurable in rte_ckeditor via Yaml).  

Back