Bug #19957
closedlinkHandler different than "record" leads to rteerror
0%
Description
class.tslib_content.php->typoLink($linktxt, $conf)
provides an hook for an linkHandler.
So an typolink like:
<link commerce:tx_commerce_products:66|tx_commerce_categories:5 -
internal-link>LinkText</link>
is valid.
But if i do it in an rte field, i get:
<span style="border: 2px solid red; background-color: yellow; color: black;"><link commerce:tx_commerce_products:66|tx_commerce_categories:5 -</p> <p>internal-link>LinkText</link></span>
Because in
typo3_src/t3lib/class.t3lib_parsehtml_proc.php->TS_links_rte($value)
there is only "record:" allowed.
Reproduce:
create text content element, disable rte and put this snippet into it:
<link commerce:tx_commerce_products:66|tx_commerce_categories:5 -
internal-link>LinkText</link>
save - everything will be fine.
Activate rte - you will see the error, deactivate the rte you get:
<span style="border: 2px solid red; background-color: yellow; color: black;"><link commerce:tx_commerce_products:66|tx_commerce_categories:5 -</p> <p>internal-link>LinkText</link></span>
You do not need to install an Extension or select something from the RTE do prove that.
(issue imported from #M10331)
Files