去除contenteditable="true"中复制过来的文本自带样式

 // 去除复制过来的文本样式,保留图片
    var re = /<[^img][^>]+>/g;
    text = text.replace(re, "");
原文地址:https://www.cnblogs.com/lljun/p/13857033.html