[TYPO3-UG Dutch] Geen link kunnen maken met v4.4.1

Daniel Doesburg daniel at typo3-nl.eu
Sat Aug 28 10:19:02 CEST 2010


Een berichtje van Stanislas van gisteravond.


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




_______________________________________________
Before posting to this list, please have a look to the posting rules
on the following websites:

http://typo3.org/teams/core/core-mailinglist-rules/
http://typo3.org/development/bug-fixing/diff-and-patch/
_______________________________________________
TYPO3-team-core mailing list
TYPO3-team-core at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-team-core


More information about the TYPO3-UG-Dutch mailing list