Bug #59302
closedJavaScript Error with userLinks in RTE
100%
Description
If using custom user links in the RTE, you get a JavaScript error, if you click any link with a target.
Page TS Config:
RTE.default.userLinks.10 { url = http://www.typo3.org target = _blank description = TYPO3 Homepage }
Offending Line:
# typo3/sysext/rtehtmlarea/Classes/BrowseLinks.php:613 if (isset($v[$k2i . '.']['target'])) { $onClickEvent .= 'TYPO3\\CMS\\Recordlist\\Browser\\ElementBrowser_setTarget(\'' . $v[($k2i . '.')]['target'] . '\');'; }
The Javascript function is named browse_links_setTarget.
The feature is also badly documented:
http://docs.typo3.org/TYPO3/extensions/rtehtmlarea/Configuration/PageTsconfig/userLinks/Index.html
There is no info what userLinks are good for or how they look. For those who want to know how they look, I've attached a screenshot.
The Bug was introduced in 4612259a457f43edaf723e1f4a8ef4ae89d00a34 when namespaces were introduced, so it is quite a long time ago.
Maybe it could be removed, because it's not well documented, buggy and I don't see a point in providing a set of fixed links :)
Files
Updated by Gerrit Code Review over 10 years ago
- Status changed from New 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/30531
Updated by Markus Klein over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 50b8effde87207b5ec63dd1b86aab3eb9a6f1503.
Updated by Gerrit Code Review over 10 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30540
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-0 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/30541
Updated by Markus Klein over 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset 9576c32cd4c8ab878912e6370215463b784ae1fb.