2011-04-14 16:42:17|  分类: 软件 |字号 订阅

 
1.将FCKeditor添加到项目中;
2.在引用中添加引用fredck.fckeditorv2.dll;
3.在项目中新建一个文件夹UserFiles,用来保存图片,flash,...;
4.在.aspx页面中添加如下代码:
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div>
  <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="../FCKeditor/" Height="400px">
  </FCKeditorV2:FCKeditor>
</div>;

5.FCKeditor就可以使用了,可以相应在FCKeditor周围添加一些控件;
6.SQL数据库字段txtContent使用text.
 
别忘了,在web.config加,否则显示网页错误
<appSettings>
  <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
  <add key="FCKeditor:UserFilesPath" value="/Files/"/>
 </appSettings>
posted on 2013-06-15 10:35  qqhfeng16  阅读(133)  评论(0编辑  收藏  举报