﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8911	pasting text seems inconsistent	jeffreybasurto		"
Pasting text seems to differ in how the editor wraps it in html based on where you copy it from.  Best guess is this has to do with new line delimiters breaking some sort of state machine.

For example if we pasted these 3 lines:
# Changes not staged for commit:
#   (use ""git add <file>..."" to update what will be committed)
#   (use ""git checkout -- <file>..."" to discard changes in working directory)

We would hope to get something like this with p tags (with more markup):
<p># Changes not staged for commit:</p>
<p>#   (use ""git add <file>..."" to update what will be committed)</p>
<p>#   (use ""git checkout -- <file>..."" to discard changes in working directory)</p>

but in reality we get this:
<p>
	&nbsp;</p>
<div>
	# Changes not staged for commit:</div>
<div>
	# &nbsp; (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)</div>
<div>
	# &nbsp; (use &quot;git checkout -- &lt;file&gt;...&quot; to discard changes in working directory)</div>
<div>
	&nbsp;</div>

But other times we do get the p tags correctly.    Furthermore, as this screenshot shows it seems to incorrectly believe the nesting level is different from the markup it produces (and for what its worth the dom shows that as well).

https://skitch.com/jeffreybasurto/8w1x6/demo-ckeditor

but after clicking source and coming back the nesting state changes without any changes to the text.

https://skitch.com/jeffreybasurto/8w1tf/demo-ckeditor


Our best guess is that the problem occurs when the clipboard contains \r\n rather than plain \n since the problem doesn't happen from many sources. "	Bug	closed	Normal		General		duplicate		
