[TYPO3-core] FYI: Fixed bug #15328: htmlArea RTE: Strange behaviours inserting links in IE

Stanislas Rolland typo3 at sjbr.ca
Fri Aug 27 18:19:59 CEST 2010


FYI: The attached SVN patch was committed.

Type:
Bugfix

Problem:
Various strange problems may occur when inserting links with IE.

Example steps to reproduce:
1. Make a new CE (Text)
2. Insert 3 paragraphs ([p]para1[/p] [p]para2[/p] [p]para3[/p])
3. Insert a link on para3
4. Insert a link on para2: no link is inserted.

Other cases are reported in the bugtracker.

Solution:
The problem is due to the approach used by the RTE to work around a bug 
in IE8 whereby the editing iframe selection is lost when the iframe 
looses focus.

An IE bookmark is taken before a window is opened, and used to restore 
the selection when editing action needs to be taken. However, it seems 
that IE's moveToBookmark() does not restore the exact same selection.

The attached patch modifies the approach by simply saving a range object 
and using it to restore the selection. This will not work if the DOM 
structure has changed in the mean time, but such event is unlikely.

The same issue exists when focus is set in a toolbar combobox. Although 
there is no reported issue that may be caused in this case, the attached 
patch applies the same change in approach.

Bugtracker references:
http://bugs.typo3.org/view.php?id=15328
http://bugs.typo3.org/view.php?id=15479
http://bugs.typo3.org/view.php?id=15564
http://bugs.typo3.org/view.php?id=15371

Branches:
trunk (revision 8706)
branch TYPO3_4-4 (revision 8707)

Regards,
Stanislas


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_bugfix_15479_trunk.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100827/677db32a/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtehtmlarea_bugfix_15479_typo3_4-4.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100827/677db32a/attachment.asc>


More information about the TYPO3-team-core mailing list