FCKeditor 2.4.2 asp.net2.0源代码下载

本文详细介绍了如何在ASP.NET 2.0网站中集成FCKeditor 2.4.2富文本编辑器,包括所需文件的准备、配置文件的修改以及必要的代码实现。
asp.net2.0 网站中加入FCKeditor 2.4.2 编辑器的几个步骤:

一、准备工作
  首先下载最新版FCKeditor V2.4.2(附件FCKeditor_2.4.2.zip),把文件解压到网站根目录,默认文件夹名为:FCKeditor;再下载FCKeditor V2.4.2(附件FCKeditor.Net_2.2.zip),把第二个包解压,里面包含了源代码,如果你想自己再次开发,可以双击 FredCK.FCKeditorV2.csproj文件,打开VS.NET进行修改,所用的语言是C#;不想修改的话,直接把bin/Release下面的FredCK.FCKeditorV2.DLL文件添加到网站。


二、修改设置
  打开FCKeditor/fckconfig.js文件。
  FCKConfig.DefaultLanguage = 'en' ;设置默认语言,把en改成zh-cn,即简体中文;
      var _FileBrowserLanguage    = 'aspx'
      var _QuickUploadLanguage    = 'aspx'
      注意:如果你用的是asp.net2.0 找到 FCKeditor/editor/filemanager/upload/aspx/upload.aspx和editor/filemanager/browser/default/connectors/aspx/connector.aspx,就像这样在第一行上加Theme="":<%@ Page language="c#" Inherits="FredCK.FCKeditorV2.FileBrowserConnector" AutoEventWireup="false" Theme="" %>
在Web.Config中
<configuration>
  <appSettings>
添加下面两行
    <add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="/FCKeditorDemo/UserFiles"/>
一表示编辑器文件所在路径,二表示文件上传在路径(FCKeditorDemo是网站名称,UserFiles是网站跟目录下的文件夹)


三、程序代码
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<html>
  <head runat="server">
  </head>
  <body>
    <form id="Form1" runat="server">
      <FCKeditorV2:FCKeditor id="FCKeditor1" runat="server"></FCKeditorV2:FCKeditor>
      <br>
      <input id="Submit1" type="submit" value="Submit" runat="server">
    </form>
  </body>
</html>

源代码下载 附件FCKeditorDemo.rar



文件名:FCKeditorDemo.rar
下载次数:55
文件类型:application/octet-stream
文件大小: 1.16 M
上传时间:2007-5-24 17:59:28
描述:rar




文件名:FCKeditor_2.4.2.zip
下载次数:51
文件类型:application/x-zip-compressed
文件大小: 1 M
上传时间:2007-5-24 18:06:49
描述:zip




文件名:FCKeditor.Net_2.2.zip
下载次数:54
文件类型:application/x-zip-compressed
文件大小: 72.52 K
上传时间:2007-5-24 18:06:49
描述:zip
 
Version 2.5<br>Attention : This version is not compatible with releases before FCKeditor 2.5.1.<br><br>New Features and Improvements:<br><br>[#1548] Compatible with Safari 3.0+ and Opera 9.50+. <br>Added specific project files for Visual Studio .NET 2003 and Visual Studio 2005. It's easier now to open the source in your preferred environment. Builds will end up in the "1.1" (VS2003) and "2.0" (VS2005) folders inside bin/Debug and bin/Release. <br>[#79] The BasePath property now defaults to "/fckeditor/" ("/FCKeditor/" previously). <br>[#79] Introduced the FCKeditor.IsCompatibleBrowser static function, to check if the requesting browser is compatible with FCKeditor. <br>[#79] Introduced the FCKeditor.CreateHtml function, which returns the HTML needed to create an editor instance in the page. <br>[#294] The HtmlEncodeOutput setting is enforced by the editor component, to avoid having to set ValidateRequest="false" on pages using the editor. <br>Several changes to the File Browser and Uploader:<br>Several security checks have been introduced. Upgrading is hightly recommended. <br>The code has been reviewed according to our standards, aligning the FCKeditor.Net File Browser to the same quality and feature level present in other server language implementations of it, like the PHP implementation. <br>The connector can now be fully configured by using the "editor/filemanager/connectors/aspx/config.ascx" file, available with FCKeditor 2.5.1. <br>For file uploads, the file extension is precisely controlled in a list defined in the config.ascx file. <br>It is possible to define different folder locations for each file type. <br>Attention : For security, the connector must be explicitly activated, by setting "Enabled = true" in the config.ascx file. <br>Attention : The default connector path has been changed to "/userfiles/", instead of "/UserFiles/". This change should not impact Windows installations. <br>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值