﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9949	"span display:none and body id=""cke_pastebin"" appearing in buffer"	Open eSignForms		"

Since upgrading to CKEditor 4.0, we noticed that our data buffer can capture odd data. It may be because we transmit the contents of editor.getData() on blur so that we can send it to the server.

Here's a simple trace of an editor as type in A, then overwrite with B, then overwrite with C, and finally overwrite using a PASTE of ""Please review to provide the records needed."":

    *** TRACE Received HTML (9) >>><p>A</p>
    <<<
    *** TRACE Received HTML (9) >>><p>B</p>
    <<<
    *** TRACE Received HTML (9) >>><p>C</p>
    <<<
    *** TRACE Received HTML (257) >>><p><span style=""display: none;"">&nbsp;</span>C<span style=""display: none;"">&nbsp;</span></p>
    <body id=""cke_pastebin"" style=""position: absolute; top: -6px; width: 1px; height: 218px; overflow: hidden; margin: 0px; padding: 0px; left: -1000px;"">&nbsp;</body>
    <<<
    *** TRACE Received HTML (52) >>><p>Please review to provide the records needed.</p>
    <<<

As you see, before we get the buffer that is correct after the paste, we also see two spans with display:none as well as an odd body tag for cke_pastebin.  What might cause the buffer to contain such odd characters we clearly did not enter and then are automatically removed in short order?

I think the PASTE operation is causing a BLUR (we noted that if we even click below the last line of text in the editor window, we get a blur and focus event as if the click loses the focus and then gets it back) and so we are seeing this interim value.  It seems that the two empty SPAN tags surround the highlighted text that I then replaced with the PASTE. If we PASTE to just append text rather than also overwrite, we noted only one SPAN is inserted.

It appears to happen on Chrome, Safari and FF, but not IE9 or Opera.

(As reported in the forums: http://ckeditor.com/forums/Support/span-displaynone-and-body-idckepastebin-appearing-in-buffer)"	Bug	closed	Normal		General		invalid		
