Okay!... I\'m facing this for hours now...
html
I think must be like this:
$('div').keyup(function(e){ $('textarea').val($(this).text().replace('',/\r\n/ig)); }); $('textarea').keyup(function(e){ $('div').html($(this).val().replace(/\r\n/ig, '')); });