您的位置:首页 > 其它

eWebEditor复制粘贴图片时过滤域名

2017-03-17 15:21 197 查看

1.找到form.js

路径:plugins/frame/scripts/form.js

这个方法:



2.替换这个方法

/**
* 处理参数
*/
Form.prototype.processReqParam = function(){
for(var i = 0; i < this.formIds.length; i ++){
$("[route='" + this.formIds[i] + "']").find("iframe[tagName='webEditor']").each(function(j){
var linkId = $(this).attr("link");
var iframe = $(this)[0];
var value = iframe.contentWindow.document.getElementById("eWebEditor").contentWindow.document.body.innerHTML;
var host = (window.location.protocol + "//" + window.location.host);
value = $.string.replaceAll(value,host,"");

$("#" + linkId).val(value);
});

}
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: