FCKeditor 的使用心得

1.首先下载

   官方下载首页:http://www.fckeditor.net/download/

     需要下载FCKeditor_2.6.6和FCKeditor.Net_2.6.3

2.将FCKeditor_2.6.6里的文件夹fckeditor 加入到项目中,放在根目录下。

3.添加FCKeditor.Net_2.6.3里的DLL到引用,或在工具箱里添加

4.web.config 里添加

    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>  第2步的文件夹位置

    <add key="FCKeditor:UserFilesPath" value="~/UserFiles/" /> 存放上传文件的位置。根据自己的文件所在位置填写。

5.在文件夹fckeditor下的fckconfig.js 里的

   var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py      改成你所使用的语言
   var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py    改成你所使用的语言

6.在fckeditor/editor/filemanager/connectors/aspx 里的两个aspx页面,

      (1) 页面属性加上StylesheetTheme=“”,引号填写你本项目的样式主题名

    (2)在fckdeitor的控件前面加上

     <html>
    <head id="Head1" runat="server"></head>

     在fckdeitor的控件后面加上

     </html>

7.如果上传文件的话,必须userfiles文件夹是可写入的。还有在fckeditor/editor/filemanager/connectors/里的config.ascx的方法 CheckAuthentication()必须返回true;

 

以上是我在做项目时遇到的一些问题,仅做为记录。

 

 

posted @ 2010-06-09 10:34  Ame  阅读(303)  评论(0编辑  收藏  举报