Bug #24661
closedhtmlArea RTE: In WebKit, RTE inserts incorrect link if text is double-clicked
0%
Description
Linking a text by a double click instead of marking the text causes an unusal behaivor.
The complete link will be inserted in between the double clicked text.
(issue imported from #M17140)
Files
Updated by Christian Kuhn almost 14 years ago
Confirmed for 4.4 and trunk. This only happens in chrome if a full word is selected with a double-mouse-click and then the element browser is used.
Uploaded screenshot on how it looks afterwards (doubleclick on word 'bar').
@Stanislas Rolland, what do you think?
Updated by Stanislas Rolland almost 14 years ago
Only Chrome? Does it happen in Safari?
Updated by Stanislas Rolland almost 14 years ago
The method used to determine the selected range does not seem to give a correct result in this case. Attached patch will use standard getRangeAt method. However, the method was not available in older versions of WebKit. Therefore the problem may remain in older versions of Safari.
Updated by Stanislas Rolland almost 14 years ago
Committed to SVN TYPO3core trunk (revision 10181), branch TYPO3_4-4 (revision 10183) and branch TYPO3_4-3 (revision 10186).