最近在维护系统时,要把fckediotr加上上传附件功能,好久没有用fckeditor了,现在都已经改名字,不叫这个了。
修改统计器下面的fckconfig.js,方法如下:
1.把FCKConfig.LinkUpload 改为 true;2.FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension; 上 + '?Type=File';3.修改上传附件扩展名。FCKConfig.LinkUploadAllowedExtensions = ".(csv|doc|rar|xls|zip)$"; // empty for all修改后的代码如下:FCKConfig.LinkUpload = true;FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=File';FCKConfig.LinkUploadAllowedExtensions = ".(csv|doc|rar|xls|zip)$"; // empty for allFCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one配置上传目录,在fckeditor/editor/filemanager/connectors/aspx下面的config.ascx中。在 SetConfig()方法中,修改UserFilesPath后面的值即可。新闻热点
疑难解答