Opened 16 years ago
Closed 15 years ago
#3677 closed Bug (fixed)
Image inside floating div cannot be linked, looses focus on IE7
Reported by: | Ioannis | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.6.5 |
Component: | General | Version: | FCKeditor 2.6.4 |
Keywords: | IE Confirmed Review+ | Cc: |
Description
Add an image inside a floating div:
<div style="float: right"><img src="..." /></div>
If you select the image and press the Add Link button, the link (<a>) is positioned at the beggining of the editor content as text and not at the image.
Alternatively, if you select the image and try to enter a link from the Link tab of Image Properties dialog, you get Javascript errors in IE7:
Line 82: 'undefined' is null or not an object
Line 789: Object doesn't support this property or method
It seems that line 256 of fck_image.js: (
oLink = oEditor.FCK.CreateLink( sLnkUrl )[0] ;
) does not return an object.
The cause is that the editor looses selection when CreateLink is called inside a floating image. If you edit an existing link with image, all is OK.
This bug is related to ticket #798 which is resolved in FCKEditor 2.6.4
Attachments (1)
Change History (6)
comment:1 Changed 16 years ago by
Keywords: | IE Confirmed added; float image link removed |
---|---|
Milestone: | → FCKeditor 2.6.5 |
comment:2 Changed 15 years ago by
Owner: | set to Martin Kou |
---|---|
Status: | new → assigned |
Changed 15 years ago by
Attachment: | 3677.patch added |
---|
comment:3 Changed 15 years ago by
Keywords: | Review? added |
---|
comment:4 Changed 15 years ago by
Keywords: | Review+ added; Review? removed |
---|
comment:5 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with [3974].
Click here for more info about our SVN system.
Confirmed on all IE versions, connected with V3: #3678.