[BUGFIX] Add css for marking broken links in rte_ckeditor 67/56967/3
authorSybille Peters <sypets@gmx.de>
Sat, 12 May 2018 18:39:29 +0000 (20:39 +0200)
committerBenjamin Kott <benjamin.kott@outlook.com>
Tue, 15 May 2018 13:18:13 +0000 (15:18 +0200)
commit4a631a36b81d50a8522dc61f631e427250a032a6
tree3e9194021f410d3810c187938212bf015c743df4
parent375cabb91582c3cfc9189f059eebe9f7c67463b3
[BUGFIX] Add css for marking broken links in rte_ckeditor

The styling for broken page links that was added in
RteHtmlParser::markBrokenLinks is by default removed by ckeditor
so this functionality is no longer available by default.

Page links which link to a non-existing page currently already
get the additional attribute a[data-rte-error]. This patch adds
CSS to visually style broken links with a red border and yellow
background. This is the same styling that was previously used.

This is done by adding the plugin showbrokenlinks.

The style is still added in markBrokenLinks. These attributes
will be removed by ckeditor by default. However, the functionality
is kept to function as fallback.

Resolves: #84987
Releases: master, 8.7
Change-Id: I63e1e1db248fb2c343cdd19b41424621b684e87e
Reviewed-on: https://review.typo3.org/56967
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Sybille Peters <sypets@gmx.de>
Tested-by: Sybille Peters <sypets@gmx.de>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
typo3/sysext/rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml
typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/showbrokenlinks/plugin.js [new file with mode: 0644]
typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/showbrokenlinks/styles/showbrokenlinks.css [new file with mode: 0644]