FCKeditor.Net v2.6.3 上传图片的配置及注意事项
来源:互联网 发布:软件工作室介绍 编辑:程序博客网 时间:2024/05/18 21:06
配置步骤如下
1. 为项目添加引用 FredCK.FCKeditorV2.dll
2. 将fckeditor文件夹拷贝至根目录
3. 配置文件中加入
<!--配置的是FCK相对于根目录的路径-->
<add key="FCKeditor:BasePath" value="~/fckeditor/"/>
<!--配置的是FCK上传文件相对于根目录保存的位置,手动创建文件夹-->
<add key="FCKeditor:UserFilesPath" value="~/UploadFiles"/>
4. 根目录下新建UploadFiles文件夹,并开放读写权限
5. 修改fckconfig.js
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
6. 修改editor/filemanager/connectors/aspx/config.ascx中的CheckAuthentication(),使其返回true
注意事项
如果出现Permission denied的脚本错误,须重新编译FCKeditor.Net_2.6.3.zip中的FileWorkerBase.cs的118行
Response.Write( @"(function(){var d=document.domain;while (true){try{var A=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
替换为
Response.Write( @"(function(){var d=document.domain;while (true){try{var A=window.parent.OnUploadCompleted; break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
友情提示
如果找不见FCKeditor.Net v2.6.3的资源包,可以在我的资源中下载
- FCKeditor.Net v2.6.3 上传图片的配置及注意事项
- 配置fckeditor 实现图片的上传
- FCKEditor v2.6 ASP.NET下的配置和使用
- FCKEditor配置及图片上传相关问题解决方案 .
- 配置并上传FCKEditor.net
- FCKeditor上传图片提示“没有权限”的解决方法(.net)
- FCKeditor上传图片提示“没有权限”的解决方法(.net)
- [转]FCKeditor上传图片提示“没有权限”的解决方法(.net)
- FCKeditor.net上传图片提示“没有权限”的解决方法
- 转贴--FCKeditor的图片上传安全配置(reship)
- ASP下的FCKeditor 2.6.4.1上传图片配置
- Fckeditor上传图片的错误
- .net fckeditor上传图片功能解决方案
- PHP配置FCKeditor编辑器以及上传图片
- ASP.NET环境下配置FCKEditor并上传图片及其它文件
- ASP.NET环境下配置FCKEditor并上传图片及其它文件
- ASP.NET环境下配置FCKEditor并上传图片及其它文件
- ASP.NET环境下配置FCKEditor并上传图片及其它文件
- sakai
- Ubuntu13.10 开机启动菜单 删除多余的内核(旧版本) 调整不同操作系统的启动顺序
- fatal error C1047 对象或库文件“....Win32Release xxx.obj”是使用比创建其他对象所用编译器旧的编译器创建的;请重新生成旧的对象和库
- 关于在android上 添加的jar包?
- ArcIMS学习之 定制HTML VIEWER笔记
- FCKeditor.Net v2.6.3 上传图片的配置及注意事项
- 对话框控件CEdit改变字体边框
- C++中 _declspec(novtable) 的探讨
- Android中获取联系人信息
- phpstrtotime()对于31日求上个月有问题
- eclipse中不自动提示方法的说明之解决办法
- django多数据库事务处理
- 广州教育科研网地址
- 开开心心学算法--喷水装置(一)