天天看点

Fckeditor配置攻略--asp.net版

网络文本编辑器----Fckeditor之使用篇

1.下载Fckeditor,asp.net版分两部分,FCKeditor和FCKeditor.Net: ASP.Net Control。

官方网站:http://ckeditor.com/download

2.Fckeditor在项目中的集成。

  很简单,不再赘述。

参考文献:http://www.cnblogs.com/zhubo/archive/2008/10/21/using_fckeditor_net.html

常见问题及解决方案:

1.错误提示:this connector is disabled Please check the editor

  解决方案:处于安全考虑,Fckeditor在上传的时候进行了限制,即在上传的时候需进行权限验证,否则不予通过。故在/fckeditor/editor/filemanager/connectors/aspx下找到config.ascx将代码中的CheckAuthentication()方法修改返回值为ture。但这是以牺牲网站的安全为代价的。更好的方法是根据实际情况重写CheckAuthentication()方法。

2fckeditor中的特殊字符(例如 ')传入SQL中导致sql出错的问题。

 解决方案:对 '进行过滤。在接收fckeditor内容的时候,对其中的 ' 进行替换,通过转义字符'。