FCKeditor简单应用

  FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器。09年发布更新到3.0,并改名为CKEditor。

    1.应用程序中添加引用 FredCK.FCKeditorV2.dll  

  2.把下载到的FCKEditor解压到你的ASP dot NET应用程序下的任意位置,如应用程序根目录下的fckeditor(该文件夹下有几个应用的例子)。

  3.在要调用FCKEditor的.aspx页面中添加一条注册指令<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>就可以使用了。

  4.调用:(把其直接当作一个控件使用,为其取一个ID,后台程序就可以通过ID 找到该文本编辑器了。)

    前台: <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Width="97%" Height="398px">
                     </FCKeditorV2:FCKeditor>

    后台:  string content=txtContent.Value;这样就可以获取文本编辑器中的值了。

posted @ 2012-04-23 14:32  fly_kw  阅读(176)  评论(0编辑  收藏  举报