#71510Linkhandler: Own Keywords can not be processed if link created via RTE
Description
Discussed this topic with Markus Klein on Slack,
If you add a LinkHandler with an own keyword everything works fine in TCEMAIN Context. But if you want to add the link in RTE Context the hostname gets prepended, because of that you can not invoke your hook registered by $GLOBALS[‘TYPO3_CONF_VARS’][‘SC_OPTIONS’][‘tslib/class.tslib_content.php’][‘typolinkLinkHandler’][‘keyword’] because the link is basically treated like an external link.
I could fix the issue by using the following code:
http://pastebin.com/ypHUQFDQ
All registered keywords should be added to some javascript-container and then be respected at
typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js:106
That way they would be saved correctly.