Project

General

Profile

Actions

Bug #24661

closed

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

Added by Fritz Blancke almost 14 years ago. Updated almost 14 years ago.

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

0%

Estimated time:
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)


Files

17140.png (15.9 KB) 17140.png Administrator Admin, 2011-01-19 17:37
rtehtmlarea_bugfix_17140_trunk.patch (1.6 KB) rtehtmlarea_bugfix_17140_trunk.patch Administrator Admin, 2011-01-20 21:29
rtehtmlarea_bugfix_17140_typo3_4-4.patch (1.6 KB) rtehtmlarea_bugfix_17140_typo3_4-4.patch Administrator Admin, 2011-01-20 22:23
rtehtmlarea_bugfix_17140_typo3_4-3.patch (871 Bytes) rtehtmlarea_bugfix_17140_typo3_4-3.patch Administrator Admin, 2011-01-20 22:23

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #24855: htmlArea RTE RTE inserts incorrect link if text is double-clicked in SafariClosedStanislas Rolland2011-01-27

Actions
Has duplicate TYPO3 Core - Bug #24792: Link error in Webkit browsersClosedStanislas Rolland2011-01-25

Actions
Actions #1

Updated by Fritz Blancke almost 14 years ago

Browser: chrome

Actions #2

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?

Actions #3

Updated by Stanislas Rolland almost 14 years ago

Only Chrome? Does it happen in Safari?

Actions #4

Updated by Noel Bossart almost 14 years ago

Happenes in Safari too.

Actions #5

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.

Actions #6

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).

Actions

Also available in: Atom PDF