

























声明:原作者是武眉博<活靶子.NET>(见http://www.cnblogs.com/huobazi/archive/2007/11/02/fckeditorremoteimagerubber.html).
本人只是在此基础上进行了完善.
原有功能:保存远程图片到本地
完善后功能:
1)使用
FckEditor配置的上传路径,不必手工配置了.
2)对于本地图片不再提交到服务器验证,节省点时间:).
3)修正原来有时不能正常采集的bug.
4)修正原来不能正确替换路径的问题,
原作者是这样做的imageUrls[_imgIndex].src = localList[_imgIndex]; 经多次测试无效,无奈之下查看fck源码发现了fck使用的方法.
这样写就没问题了:
imageUrls[_imgIndex].src = localList[_imgIndex];
imageUrls[_imgIndex].setAttribute("_fcksavedurl", localList[_imgIndex], 0) ;
var FCKLang =
{
RemoteImageRubberBtn: "保存远程图片",
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。