Project

General

Profile

Actions

Bug #19957

closed

linkHandler different than "record" leads to rteerror

Added by Martin Holtz over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-02-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

class.tslib_content.php->typoLink($linktxt, $conf)
provides an hook for an linkHandler.

So an typolink like:
<link commerce:tx_commerce_products:66|tx_commerce_categories:5 -
internal-link>LinkText</link>

is valid.

But if i do it in an rte field, i get:

<span style="border: 2px solid red; background-color: yellow; color: black;"><link commerce:tx_commerce_products:66|tx_commerce_categories:5 -</p> <p>internal-link>LinkText</link></span>

Because in

typo3_src/t3lib/class.t3lib_parsehtml_proc.php->TS_links_rte($value)

there is only "record:" allowed.

Reproduce:

create text content element, disable rte and put this snippet into it:

<link commerce:tx_commerce_products:66|tx_commerce_categories:5 -
internal-link>LinkText</link>

save - everything will be fine.

Activate rte - you will see the error, deactivate the rte you get:

<span style="border: 2px solid red; background-color: yellow; color: black;"><link commerce:tx_commerce_products:66|tx_commerce_categories:5 -</p> <p>internal-link>LinkText</link></span>

You do not need to install an Extension or select something from the RTE do prove that.

(issue imported from #M10331)


Files

10331.diff (939 Bytes) 10331.diff Administrator Admin, 2009-02-03 10:52
T3X_linkhandler-0_2_1-z-200902031052.t3x (97.3 KB) T3X_linkhandler-0_2_1-z-200902031052.t3x Administrator Admin, 2009-02-03 10:52
0010331_v3.patch (939 Bytes) 0010331_v3.patch Administrator Admin, 2009-04-08 12:56
T3X_testlinkhandler-0_0_0-z-200904281745.t3x (3.34 KB) T3X_testlinkhandler-0_0_0-z-200904281745.t3x Administrator Admin, 2009-04-28 17:45

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #20294: Integrate possibility to validate custom links for RTEhtmlare disposalClosedOliver Hader2009-04-08

Actions
Has duplicate TYPO3 Core - Bug #20314: Links with registered keywords are not recognized by RTEClosedSteffen Kamper2009-04-15

Actions
Actions

Also available in: Atom PDF