Bug #24661

htmlArea RTE: In WebKit, RTE inserts incorrect link if text is double-clicked

Added by Fritz Blancke over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-01-19
Due date:
% Done:

0%

TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

17140.png View (15.9 KB) Administrator Admin, 2011-01-19 17:37

rtehtmlarea_bugfix_17140_trunk.patch View (1.6 KB) Administrator Admin, 2011-01-20 21:29

rtehtmlarea_bugfix_17140_typo3_4-4.patch View (1.6 KB) Administrator Admin, 2011-01-20 22:23

rtehtmlarea_bugfix_17140_typo3_4-3.patch View (871 Bytes) Administrator Admin, 2011-01-20 22:23


Related issues

Duplicated by TYPO3 Core - Bug #24855: htmlArea RTE RTE inserts incorrect link if text is double-clicked in Safari Closed 2011-01-27
Duplicated by TYPO3 Core - Bug #24792: Link error in Webkit browsers Closed 2011-01-25

History

#1 Updated by Fritz Blancke over 8 years ago

Browser: chrome

#2 Updated by Christian Kuhn over 8 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').

@Stan, what do you think?

#3 Updated by Stanislas Rolland over 8 years ago

Only Chrome? Does it happen in Safari?

#4 Updated by Noel Bossart over 8 years ago

Happenes in Safari too.

#5 Updated by Stanislas Rolland over 8 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.

#6 Updated by Stanislas Rolland over 8 years ago

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