...
|
...
|
@@ -189,6 +189,40 @@ |
|
|
enableContextMenu: false,
|
|
|
retainOnlyLabelPasted:true,
|
|
|
pasteplain:true,
|
|
|
'filterTxtRules' : function(){
|
|
|
function transP(node){
|
|
|
node.tagName = 'p';
|
|
|
node.setStyle();
|
|
|
}
|
|
|
return {
|
|
|
//直接删除及其字节点内容
|
|
|
'-' : 'script style object iframe embed input select',
|
|
|
'p': {$:{}},
|
|
|
'br':{$:{}},
|
|
|
'li':{'$':{}},
|
|
|
'h1':{'$':{}},
|
|
|
'h2':{'$':{}},
|
|
|
'h3':{'$':{}},
|
|
|
'h4':{'$':{}},
|
|
|
'h5':{'$':{}},
|
|
|
'h6':{'$':{}},
|
|
|
'ol':{'$':{}},
|
|
|
'ul':{'$':{}},
|
|
|
'hr':{'$':{}},
|
|
|
'strong':{'$':{}},
|
|
|
'caption':transP,
|
|
|
'th':transP,
|
|
|
'tr':transP,
|
|
|
'td':function(node){
|
|
|
//没有内容的td直接删掉
|
|
|
var txt = !!node.innerText();
|
|
|
if(txt){
|
|
|
node.parentNode.insertAfter(UE.uNode.createText(' '),node);
|
|
|
}
|
|
|
node.parentNode.removeChild(node,node.innerText())
|
|
|
}
|
|
|
}
|
|
|
}(),
|
|
|
maximumWords:100000
|
|
|
});
|
|
|
|
...
|
...
|
|