﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6856	Inserting span tag - wrapped content with insertHTML appends after ending <p> tag instead of inside.	Zac		"Occurs in Safari 5.0.3 for Mac OS 10.6.5

When using the method editor.insertHtml() to insert content that is wrapped in a <span> tag, the content is not inserted into the location where the cursor resides. It inserts the content OUTSIDE of the next available ending </p> tag.

This makes it impossible to insert content wrapped in a span (non-block level) tag on the same line as existing content in the editor.


To replicate:

 Use a plugin which installs a menu into the Editor toolbar, such as richcombo plugin. The plugin should use editor.insertHtml() to insert content. The content to be inserted by the menu item should be wrapped in span tags like:

<span>some content</span>

Within a new editor instance, first type a single word but do not hit return.
Select the menu item from the toolbar that uses editor.insertHTML() to insert content wrapped in a simple span tag.
Notice that the content is inserted on a new line, not next to the word.
Click the Source toolbar button.
Notice that the span tag is inserted after the closing </p> tag.
"	Bug	confirmed	Normal		Core : Read-only	3.3		Webkit	
