Bug #24661
closed
htmlArea RTE: In WebKit, RTE inserts incorrect link if text is double-clicked
Added by Fritz Blancke over 13 years ago.
Updated over 13 years ago.
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
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?
Only Chrome? Does it happen in Safari?
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.
Committed to SVN TYPO3core trunk (revision 10181), branch TYPO3_4-4 (revision 10183) and branch TYPO3_4-3 (revision 10186).
Also available in: Atom
PDF