把这个复制到报表web填报属性的加载结束 js 里面试一下
FR.WritePane.prototype.dealWithPasteContent = function(value) {
//查找复制文本中是否有\t"\t,有的话将其替换成\t"
//if (value.match('\t"\t') ) {
if (value.match('"\t ') ) {
//先去除开头的tab符
value = value.replace(/"\t /g,'"');
//去除所有不可见字符
//value = value.replace(/\s*/g,'');
//value = value.replace(/\t"\t/g,'\t"');
}
if(value.match('\t"\t')){
//然后去除结尾的tab符
value = value.replace(/\t"\t/g,'"\t');
}
return this._parsePasteContentToArray(value);
}
FR.WritePane.prototype.cellPasteCheck = function(cell, cev, editorO) {
return cev !== null && !editorO.disabled && editorO.editable !== false && editorO.directEdit !== false;
}