参照http://blog.csdn.net/lzy_1515/archive/2010/03/22/5405250.aspx,学习了FCKEditor的初步使用。
在页面中使用FCKEditor控件
<FCKeditorV2:FCKeditor ID="content" runat="server" Height="600px">
</FCKeditorV2:FCKeditor>
代码访问,获取输入的内容:
dr["content"]=content.Value
把文件打包上传了,方便大家使用。
下载dll文件FredCK.FCKeditorV2.rar
有些情况下,会出现上传文件名为中文的文件时出现乱码现象,可以在FCKEditor的目录下新建Web.config文件,内容如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="c#" debug="true" />
<authorization>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
<pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode ="Never" />
<xhtmlConformance mode="Legacy"/>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
</system.web>
</configuration>