Authored by ZhongW

部分格式清除

... ... @@ -7145,12 +7145,12 @@ var jQuery = require('jquery');
html = div.innerHTML; //.replace(/>(?:(\s|&nbsp;)*?)</g,'><');
// html = div.innerText;
/*if (typeof(UMEDITOR_CONFIG.removePasteStyle) != "undefined" && UMEDITOR_CONFIG.removePasteStyle == 1) {
if (typeof(UMEDITOR_CONFIG.removePasteStyle) != "undefined" && UMEDITOR_CONFIG.removePasteStyle == 1) {
html = html.replace(/<(p|div)[^>]*>(<br\/?>|&nbsp;)<\/\1>/gi, '\n')
.replace(/<br\/?>/gi, '\n')
.replace(/<[^>/]+>/g, '')
.replace(/(\n)?<\/([^>]+)>/g, '');
}*/
}
//过滤word粘贴过来的冗余属性
html = UM.filterWord(html);
//取消了忽略空白的第二个参数,粘贴过来的有些是有空白的,会被套上相关的标签
... ...