Opened 13 years ago
Last modified 13 years ago
#8338 confirmed Bug
Opera: link not inserted in correct position when we have image before cursor position (CORE-14592)
Reported by: | Satya Minnekanti | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | IBM Opera | Cc: | Damian, Teresa Monahan, Hallvord R. M. Steen (Opera Software) |
Description
To reproduce the defect:
- Open any CK Editor sample, type some text, insert a smiley or image and click on Link icon in the tool bar to open Link dialog.
- Enter the URL for the link and click OK button.
Expected Result: Link inserted after the smiley/Image
Actual Result: Link not inserted before the smiley/Image
Change History (4)
comment:1 Changed 13 years ago by
Keywords: | Opera added |
---|---|
Status: | new → confirmed |
Version: | → 3.0 |
comment:2 Changed 13 years ago by
Cc: | Hallvord R. M. Steen (Opera Software) added |
---|
comment:4 Changed 13 years ago by
Summary: | Opera: link not inserted in correct position when we have image before cursor position → Opera: link not inserted in correct position when we have image before cursor position (CORE-14592) |
---|
The line break / link is not inserted after the IMG but before the first inline element in the paragraph. When the cursor is behind the image, the range offset is wrong when retrieving for example window.getSelection().getRangeAt(0).startOffset - an offset of 1 here means the first inline child in the paragraph, so when CKEditor tries to "restore" the selection/cursor position it gets things wrong.
Issue is now tracked as CORE-14592 on Opera's side.
I have checked issue under latest Opera 11.51.
I have opened replacebycode sample, clicked at the end of sample text in inserted a similey.
At that point cursor was blinking after smiley.
I clicked link, entered a text and pressed ok. The link was inserted before "sample" word. Please see code below: