去除contenteditable="true"中复制过来的文本自带样式 // 去除复制过来的文本样式,保留图片 var re = /<[^img][^>]+>/g; text = text.replace(re, "");