FCKeditor使用详解

83 篇文章 0 订阅

你如果是CSDN的博客,你就一定用过FCKeditor。因为你写文章用的那个编辑器就是FCKeditor.

本文参考下面的2篇文章所写。

1 asp.net 2.0 下设置和使用FCKeditor文本编辑器

2  FCKeditor 在ASP.Net 中的使用说明

只要按照1配置即可。

文件下载我的是FCKeditor.Net_2.2.zipFCKeditor_2.4.2.zip

1 webconfig.xml的设置:

   <appSettings>
    <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/Hhxx/FckFiles" />

    <add key="DatabaseConnStr" value="Data Source=hhxx;User ID=HHSYS;Password=1234;"/>
  </appSettings>

2 在根目录Hhxx下建文件夹FckFiles用于存放图像文件

3 在根目录Hhxx下建FCKeditor放置文件

fck

4 建立测试文件

fckeditor.aspx

<% @ Register TagPrefix = " FCKeditorV2 "  Namespace = " FredCK.FCKeditorV2 "  Assembly = " FredCK.FCKeditorV2 "   %>
<% @ Page Language = " C# "  AutoEventWireup = " true "  CodeFile = " fckeditor.aspx.cs "  Inherits = " fckeditor "  ValidateRequest = " false "   %>

<! DOCTYPE html PUBLIC  " -//W3C//DTD XHTML 1.0 Transitional//EN "   " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >

< html xmlns = " http://www.w3.org/1999/xhtml "   >
< head runat = " server " >
    
< title > FCKeditor </ title >
</ head >
< body >
    
< form id = " form1 "  runat = " server " >
    
< div >
    
< FCKeditorV2:FCKeditor id = " FCKeditor1 "  runat = " server "  Height = " 500px "  Width = " 600px " ></ FCKeditorV2:FCKeditor >

    
</ div >
    
</ form >
</ body >
</ html >

运行即可。

fckeditor

保存Fckeditor值用Value类型为String.

测试通过

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值