﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8950	Webkit: insertElement() not working as expected for inline elements	Teresa Monahan	Garry Yao	"The formatting of elements changes when inserting multiple elements into the editor in Webkit browsers.

To reproduce:

- Save the attached file into the _samples directory and open it in Chrome or Safari.
- Click the 'Insert Elements' button. This should add a paragraph of text to the editor and an image below it.

'''Problem:''' The image is inserted after the text, rather than below it in webkit browsers.

The generated HTML in webkit browsers is:

{{{
<p>
	Text goes here<img src=""http://a.cksource.com/c/1/inc/img/demo-little-red.jpg"" /></p>
}}}

Other browsers correctly add a new paragraph for the image:

{{{
<p>
	Text goes here</p>
<p>
	<img src=""http://a.cksource.com/c/1/inc/img/demo-little-red.jpg"" /></p>
}}}

This only seems to occur when an inline element is inserted after a block level element. We can reproduce this when the first element is a <p> or <div> and the 2nd element is a <img>, <iframe>, <a>, <span> etc.

This seems like it could be a webkit issue, however ticket #8412 describes an issue in Opera which could be related.
"	Bug	closed	Normal	CKEditor 3.6.4	General	3.0	fixed	IBM	Damian Satya Minnekanti
