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:

  1. Save the attached file into the _samples directory and open it in Opera.
  2. 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)

Opera insertElements issue.html (1.9 KB) - added by Teresa Monahan 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Teresa Monahan

comment:1 Changed 13 years ago by Jakub Ś

Keywords: Opera added
Status: newconfirmed
Version: 3.6.23.0

Reproducible in Opera from CKEditor 3.0

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy