Actions
Bug #71510
closedLinkhandler: Own Keywords can not be processed if link created via RTE
Status:
Closed
Priority:
Must have
Assignee:
Category:
Site Handling, Site Sets & Routing
Target version:
Start date:
2015-11-12
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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.
Actions