日期:2014-05-17  浏览次数:20410 次

ckfinder单独使用和结合ckeditor使用会有冲突吗?
项目中有的地方需要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();


请大家帮忙看看。
ckfinder ckeditor

------解决方案--------------------
你去它官网上看,那里有帮助文档的。单独使用是没有问题的