现在的位置: 首页 > 综合 > 正文

ASP.NET使用FCKeditor编辑器

2012年12月10日 ⁄ 综合 ⁄ 共 774字 ⁄ 字号 评论关闭

 

FCKeditor官网下载地址

http://www.fckeditor.net/

1COPY fckeditor文件夹到WEB项目下、项目添加DLL引用、新建UploadFiles文件(上传图片等的目录)

2web.config配置

   <appSettings>

           <add key="FCKeditor:BasePath" value="~/fckeditor/"/>

           <add key="FCKeditor:UserFilesPath" value="~/UploadFiles/"/>

</appSettings>

<system.web>

           <pages validateRequest="false"/> --允许html代码

</system.web>

3:必须更改的设置

编辑fckeditor根目录下的fckconfig.js文件(红色字体表示更改后)

var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php

FCKConfig.DefaultLanguage = 'zh-cn' ;

到这里能够正常使用fck编辑器了。

45点非必须)

4fckeditor根目录下只保留editor文件夹,fckconfig.jsfckeditor.jsfckstyles.xmlfcktemplates.xml 4个文件。

­_开头的是些示例,可以删除掉

5 fckconfig.js文件查找到FCKConfig.ToolbarSets["Default"] 可以对着默认工具栏明白里面的代码意思。根据自己需求进行精简,看起来不那么臃肿。

 

 

抱歉!评论已关闭.