Issue Bug Closed

#65482file:///* links messed up in RTE when saving

Jörg Wagner 03/03/15, 14:08 updated 03/03/15, 17:25

Description

RTE interprets file:/// links as FAL file references and cripples them (applies htmlentities encoding and prepends web domain).

*Fix*
/typo3/sysext/core/Classes/Html/RteHtmlParser.php (line 586), insert:

                if(isset($attribArray['href']) && strpos($attribArray['href'], 'file:')===0)  $attribArray['rtekeep'] = '1';

This will add an attribute rtekeep=“1” to links with schema file: which will in turn keep RTE from touching them.
The inserted rtekeep attribute will not be rendered in FE and only corrects the RTE behaviour.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.