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 #1

Updated by Markus Klein over 8 years ago

  • Category changed from RTE (rtehtmlarea + ckeditor) to Link Handling, Site Handling & Routing
  • Status changed from New to Accepted
  • Assignee set to Markus Klein
  • Priority changed from Should have to Must have
  • Target version changed from next-patchlevel to 7 LTS
Actions #2

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44713

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44713

Actions #4

Updated by Markus Klein over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF