Actions
Bug #65482
closedfile:///* links messed up in RTE when saving
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-03-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
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.
Actions