复制粘贴时将图片所带链接删掉

This commit is contained in:
yuanke 2016-05-13 19:07:36 +08:00
parent 2c7a964470
commit 6056505f96
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ function uploadpic(piclist,myself) {
//复制过来带的链接class等都要去掉 和视频图片有关系
that.removeAttr("class");
that.parent().removeAttr("class");
that.parent().removeAttr("href");
that.parents().removeAttr("href"); //删除所有父节点的href
// that.parent().removeAttr("href");
that.parent().removeAttr("data-ke-src");
tIndex = tIndex + 1;
}