LeaVerou/dabblet — Issue #19: Pasting from jsfiddle (and, maybe, other rich editors) don't work
Author: kizu
Created: 2011-12-12 10:52:56+00:00
State: open

Pasting the code from the jsfiddle works really strange: in Chrome all the newlines are stripped and a lot of nbsp's are inserted.

So, there is a need to sanitize the input somehow, so that all the visual formatting from the original code would be stripped (though, the algorithm for that must be strong enough, so it wouldn't strip anything that is meaningful. However, stripping some nbsps would be better than current situation.
(I've tried to paste code from http://jsfiddle.net/kizu/zfUyN/), and this is and ID of what I got: 1466567