[TASK] Always keep <a> instead of <link> tags in RTE transformations 41/49441/5
authorBenni Mack <benni@typo3.org>
Thu, 12 Jan 2017 01:29:23 +0000 (02:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 12 Jan 2017 14:13:10 +0000 (15:13 +0100)
commit0f1ba66a669248f6a2940b1e001e9f1fd4c43539
treea7e7af299d21e6406540362ee2babf1e61e82b1d
parenta4ab8a89ba2edf2f7bd853d65ddbdcb41e5c6fb1
[TASK] Always keep <a> instead of <link> tags in RTE transformations

The RTE uses <a> tags for handling links, a transformation
that replaces <link> tags to <a> tags is updated to use the
new t3:// linking syntax instead of hard-coding index.php?id=23
or trying to manually resolve the TypoLink functionality
for doing links.

This also means that the RTE now deals with t3:// links,
and HtmlArea is adapted as well.

When saving the links in the database again, the links
are now not transformed into <link> tags again but kept
as proper <a> tags.

Resolves: #79291
Releases: master
Change-Id: Idc002138e1283d6962666dcd44ba3039c464d6ca
Reviewed-on: https://review.typo3.org/49441
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Html/RteHtmlParser.php
typo3/sysext/core/Tests/Unit/Html/RteHtmlParserTest.php
typo3/sysext/recordlist/Resources/Public/JavaScript/UrlLinkHandler.js
typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/RteLinkBrowser.js
typo3/sysext/rtehtmlarea/Classes/Extension/Typo3Link.php
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/Plugins/TYPO3Link.js
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js