下载地址:http://www.fckeditor.net/download
Web. Config文件,修改appSettings元素,配置如下:
<appSettings>
<add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
<!--FCKeditor基本文件目录-->
<!--FCKeditor基本文件目录-->
<add key="FCKeditor:UserFilesPath" value="/Files" />
<!--文件上传目录-->
<!--文件上传目录-->
</appSettings>
把.net的bin/FredCK.FCKeditorV2.dll解压引用就行
fckconfig.js里有很多配置保护语言版本,上传等设置
加到网页的步骤:
1.引用bin/FredCK.FCKeditorV2.dll
2.将页面切换到设计模式
3.呼出工具箱,在"常规"选项卡内点击右键,选择"选择项",浏览选择bin/FredCK.FCKeditorV2.dll,点确定后就会在工具箱的"常规"中出现一个控件.
4.在页面处于设计模式时,将此控件拖入网页,然后设置其ID,并在网页的第一行标签里加[ValidateRequest="false"]
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
5.在入数据库时将取得值Server.HtmlEncode(),在将数据用编辑器编辑或显示于网页上时将数据Server.HtmlDecode()
6.取得值或判断值时用.value