#388 closed Bug (fixed)
MSIE Problem: Linking two lines in a list
Reported by: | Patrick Hagemeister | Owned by: | Alfonso Martínez de Lizarrondo |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.4.3 |
Component: | General | Version: | |
Keywords: | Cc: |
Description
One of our customers just found a problem with FCKEditor. He's putting quite a lot of pressure on us to get it fixed, so if you could take a look and advise what we can do about it...
Abstract
There is a Problem in FCKEditor when using MSIE 6 (and possibly also 7, not tested). If you have two lines separated by a <br/> tag in a single <li> List Element and try to link these two lines to a different location, the editor links both lines to the same location.
How to reproduce
- Open http://www.fckeditor.net/demo
- Delete all text
- Insert a numbered List and write:
This is line A[Shift-Return]This is line B
This should produce this piece of HTML:
<ol> <li>This is line A<br /> This is line B</li> </ol>
- Mark the first line ("This is line A") and link it to some URL, i.e. "http://www.google.com"
- Mark the second line ("This is line B") and link it to some URL, i.e. "http://www.fckeditor.net"
- The editor now extends the marked range *and* the link to both lines automatically, so both lines are linked to the second URL (i.e. "http://www.fckeditor.net")
Demonstration Video/Screencast
If you need any more info, please let me know... (also via Phone if you want: +49-203-30597-54).
Best Regards, Patrick
Change History (7)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
Owner: | set to Alfonso Martínez de Lizarrondo |
---|---|
Status: | new → assigned |
With the description from Frederico it should be easy to fix this problem: if the last node of a link is a <br> then move it out of the link.
I'm gonna test it now.
comment:4 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Thanks very much!
You linked the fix to the wrong ticket in whatsnew.html though (ticket:338 instead of ticket:388): changeset:252 Don't know whether it's worth fixing...
Best Regards, Patrick
comment:5 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed the link with [254]. Thanks for the detail Patrick, and many thanks to Alfonso for the fix.
comment:6 Changed 18 years ago by
Milestone: | → FCKeditor 2.5 |
---|
comment:7 Changed 18 years ago by
Milestone: | FCKeditor 2.5 → FCKeditor 2.4.3 |
---|
Hi, first feedback from Frederico Caldeira Knabben (via email support request) was:
QUOTE
Thanks for your details report. The screencast helped a lot to understand the problem, as I was not able to reproduce it promptly.
This problem will only happen if you select "This is line A", dragging the mouse far from the right side of "A". It actually selects the line break too. If you stop the tests with only the first link, this is what you will have:
As you can see, the <br /> is part of the link. So, when selecting "This is line B", part of the previous <a> gets somehow selected too (I'm trying to explain what I believe IE does internally).
You will not have the same problem if you make the selection finishing precisely at "A". That would be a temporary way to avoid the problem.
Also, it not only happens inside a <li>. It will happen anywhere you have a <br>.