Project

General

Profile

Actions

Bug #71510

closed

Linkhandler: Own Keywords can not be processed if link created via RTE

Added by Philipp Wrann over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Link Handling, Site Handling & 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

Also available in: Atom PDF