打开下图所示三个文件,查找 CKEDITOR.cleanWord=,替换为如下:
CKEDITOR.cleanWord=function(a,c){return a;if(CKEDITOR.env.gecko)a=a.replace(/(<!--\[if[^<]*?\])-->([\S\s]*?)<!--(\[endif\]-->)/gi,'$1$2$3');var j=new g(),k=j.dataFilter;k.addRules(CKEDITOR.plugins.pastefromword.getRules(c));c.fire('beforeCleanWord',{filter:k});try{a=j.toHtml(a,false);}catch(l){alert(c.lang.pastefromword.error);}a=a.replace(/cke:.*?".*?"/g,'');a=a.replace(//g,'');a=a.replace(/<span>/g,'');return a;};})();