網絡文本編輯器----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内容的時候,對其中的 ' 進行替換,通過轉義字元'。