Opened 13 years ago
Last modified 13 years ago
#8412 confirmed Bug
Opera: insertElement() not working as expected for inline elements
Reported by: | Teresa Monahan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | IBM Opera | Cc: | Damian, Satya Minnekanti |
Description
When inserting multiple elements into the editor in Opera, the elements are sometimes added in the incorrect order. This only seems to occur when one of the elements being added is an inline element.
To reproduce:
- Save the attached file into the _samples directory and open it in Opera.
- Click the 'Insert Elements' button. This should add an empty image to the editor, followed by a paragraph of text.
Problem: The Paragraph of text is sometimes added to the editor before the image.
This problem only occurs when inserting elements into an empty editor and it occurs roughly every 2nd time.
The attached sample uses the following code:
temp.setHtml('<img src=""/><p>Text goes here</p>');
However if the img tag is replaced by other inline elements like <span> or <a>, the problem also occurs. We cannot reproduce the issue when using block level elements like <p> or <div> instead of the <img> tag though.
Attachments (1)
Change History (2)
Changed 13 years ago by
Attachment: | Opera insertElements issue.html added |
---|
comment:1 Changed 13 years ago by
Keywords: | Opera added |
---|---|
Status: | new → confirmed |
Version: | 3.6.2 → 3.0 |
Reproducible in Opera from CKEditor 3.0