最近在维护系统时,要把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
修改后的代码如下:
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 all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
配置上传目录,在fckeditoreditorfilemanagerconnectorsaspx下面的config.ascx中。FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=File';
FCKConfig.LinkUploadAllowedExtensions = ".(csv|doc|rar|xls|zip)$"; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
在 SetConfig()方法中,修改UserFilesPath后面的值即可。