$(function(){
var update = function(original){
var new_content = $('.testmr').html();
var new_content = new_content.replace(/class="[^"]+"/ig, '');
new_content = new_content.replace(/class\="[^"]+"/gi, '');
new_content = new_content.replace(/<h1.*?>(.*?)<\/h1>/ig,"$1");
new_content = new_content.replace(/<h2.*?>(.*?)<\/h2>/ig,"$1");
new_content = new_content.replace(/<h3.*?>(.*?)<\/h3>/ig,"$1");
new_content = new_content.replace(/<h4.*?>(.*?)<\/h4>/ig,"$1");
new_content = new_content.replace(/<h5.*?>(.*?)<\/h5>/ig,"$1");
new_content = new_content.replace(/<h6.*?>(.*?)<\/h6>/ig,"$1");
new_content = new_content.replace(/style\="[^"]+"/gi, '');
alert(new_content);
$('.testmr').html(new_content);
}
$('.testmr').bind('paste',function(e){
var $this = $(this);
var original = $this.html();
setTimeout(function(){update();}, 10);
})
})