FckEditor2.6.4在VS2005中的使用过程

1.下载FckEditor_2.6.4.zip包和FckEditor.NET_2.6.3.zip包(怎么.net的包没有找到2.6.4呢)

2.把两个包解压。FckEditor_2.6.4.zip包解压缩的内容全部放到要使用的网站目录下面去。

3..NET包解压缩后找到“xxx\fckeditor\net\bin\Release\2.0\”目录下的“FredCK.FCKeditorV2.dll”文件,复制该文件到网站的Bin目录下。

4.将该文件直接拖放到VS的工具箱中,会多出一个FckEditor的控件。

5.在引用该控件的网页代码头部有这句话“<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

6.web.config文件中配置如下:
 <appSettings>
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/Files/" />
  </appSettings>
UserFilesPath的值是用户上传文件存放的目录,需要对服务器该目录有写入权限。

7.修改fckconfig.js文件

var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php

8.直接把控件拖到网页中要使用的地方。

<% @ Page Language = " C# "  AutoEventWireup = " true "   CodeFile = " Default.aspx.cs "  Inherits = " _Default "   %>

<% @ Register Assembly = " FredCK.FCKeditorV2 "  Namespace = " FredCK.FCKeditorV2 "  TagPrefix = " FCKeditorV2 "   %>

<! 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 > 无标题页 </ title >
</ head >

< body >
    
< form  id ="form1"  runat ="server" >
    
< div >
     
< FCKeditorV2:FCKeditor  ID ="FCKeditor1"  runat ="server" ></ FCKeditorV2:FCKeditor >
    
</ div >
    
</ form >
</ body >
</ html >

 

9.效果图

转载于:https://www.cnblogs.com/Jinspet/archive/2009/02/05/1384797.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值