Ticket #8894 (confirmed Bug)
Display:inline-block issue
| Reported by: | amazumde | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 3.2.1 |
| Keywords: | IE | Cc: |
Description
<span style="display: inline-block"><a href="/send-now"><img alt="Buy - Global Express" src="sites/default/files/media/buy_button.gif" /></a></span>
Paste the above HTML in source.
While using CK editor in IE, if we select the image and click on the link editor, it looses focus and link is inserted at the beginning of the HTML rather than at the image itself.
This is due to display: inline-block and happens only in IE. Please fix.
Attachments
Change History
Changed 13 months ago by amazumde
- Attachment Display-Inline issue.docx added
comment:2 Changed 13 months ago by j.swiderski
- Keywords IE added; Display:inline-block removed
- Status changed from new to confirmed
- Version set to 3.2.1
Reproducible in IE6-8 from CKEditor 3.2.1.
Code to start with:
<p> test</p> <p> <span style="display: inline-block"><img alt="Buy - Global Express" src="http://192.168.1.100:8080/b.jpg" style="width: 100px; height: 75px" /></span></p>
NOTE: When you click on image and then click Link button all browsers except IE6-8 (IE6-8 till CKE 3.2.1) will produce:
<a href="http://test"><span style="display: inline-block"><img alt="Buy - Global Express" src="http://192.168.1.100:8080/b.jpg" style="width: 100px; height: 75px" /></span></a>
The above is correct but I'm not sure if this is what you wanted.
To get link around img but inside span you have to double-click on the image (right-click or left-click and Image toolbar button will not work. Reported here #8960), go to link tab and set link there.
comment:3 Changed 13 months ago by amazumde
Not sure if the double click solution works. I tried double clicking on the image, but when I click the link icon, it gives me the same result.
comment:4 Changed 13 months ago by j.swiderski
when I click the link icon
Link icon? could you tell me what link icon are you talking about?
For m the following works in IE6-8 - double-click on image (image properties dialog gets displayed), click on link tab, enter link, press ok.

issue shown in the doc