Gadget:Contenteditable-flow-sans-newlines.js
From CODECS Dev
$(document).ready(function() { $('[contenteditable]').on('paste', function(e) { var $self = $(this); setTimeout(function() { $self.html($self.text()); }, 0); }).on('keypress', function(e) { return e.which != 13; }); });