项目中有的地方需要ckeditor+ckfinder一起使用,有的地方要单独使用ckfinder上传文件,请问这两种情况下的配置会有冲突吗?
现在ckeditor+ckfinder一起使用时正常,ckfinder单独使用时报错。
行: 7
错误: 对象不支持此属性或方法
var finder = new CKFinder();
finder.basePath = '../CKFinder/'; //导入CKFinder的路径
////设置文件被选中时的函数
finder.selectActionFunction = function (fileUrl, data) {
//$("#" + inputId).val(fileUrl);
document.getElementById(data["selectActionData"]).value = fileUrl;
};
finder.selectActionData = inputId; //接收地址的input ID
finder.popup();
请大家帮忙看看。ckfinderckeditor
现在ckeditor+ckfinder一起使用时正常,ckfinder单独使用时报错。
行: 7
错误: 对象不支持此属性或方法
var finder = new CKFinder();
finder.basePath = '../CKFinder/'; //导入CKFinder的路径
////设置文件被选中时的函数
finder.selectActionFunction = function (fileUrl, data) {
//$("#" + inputId).val(fileUrl);
document.getElementById(data["selectActionData"]).value = fileUrl;
};
finder.selectActionData = inputId; //接收地址的input ID
finder.popup();
请大家帮忙看看。ckfinderckeditor
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货