I've succesfully created a behavior that copies the contents of a div container into a textarea field:
$('a').click(function() {
var contents = $('.content').html();
$('textarea').val(contents);
});
http://jsfiddle.net/foomarks/E5sPj/6/
However, I'm stumped on:
Any suggestions are appreciated!
Try this
$('a').click(function() {
var contents = $('.content').html();
contents = contents.replace(/<p>(.*?)<\/p>/gi,"$1\n");
$('textarea').val(contents);
});