下载 FCKeditor2.3.2.rar 和FCKeditor.Net_2.2.zip
建立虚拟目录或时网站FCKeditorTest(这里我建立的时虚拟目录)指向路径 D:/FCKeditorTest
1、在D:/FCKeditorTest下建立bin文件夹
2、把FCKeditor.Net_2.2.zip中的bin下的FredCK.FCKeditorV2.dll解压到D:/FCKeditorTest/bin下
3、把FCKeditor2.3.2.rar 中的FCKeditor解压到D:/FCKeditorTest下,
修改fckconfig.js文件50行为
FCKConfig.DefaultLanguage = 'zh-cn' ;//支持中文于洋
修改fckconfig.js文件的143、144行为
var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py
var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php
4、在D:/FCKeditorTest下建立Test.aspx、Test.aspx.cs、web.config
5、运行http://localhost/FCKeditorTest/Test.aspx就可以看到效果了
Test.aspx文件内容

<%...@page language="c#" codefile="test.aspx.cs" inherits="Test" AutoEventWireup="false" validateRequest="false"%>
<%...@Register Assembly="FredCK.FCKeditorV2" NameSpace="FredCK.FCKeditorV2" TagPrefix="FCKEditorV2"%>
<html>
<body>
<form id="form1" runat="server">
<FCKeditorV2:FCKeditor ID="editor" runat="server"></FCKEditorV2:FCKeditor>
<asp:Button id="btnSubmit" text="Submit" runat="server" OnClick="btnSubmit_Click" />
</form>
</body>
</html>Test.aspx.cs文件内容
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Test : System.Web.UI.Page
...{
protected void btnSubmit_Click(object sender, EventArgs e)
...{
Response.Write(editor.Value);
}
}
<?xml version="1.0" ?>
<configuration>
<appSettings>
<add key="FCKeditor:BasePath" value="~/FCKeditor/"/>
<add key="FCKeditor:UserFilesPath" value="/test/UserFiles"/>
</appSettings>
<system.web>
<compilation debug="false">
<assemblies>
<add assembly="FredCK.FCKeditorV2, Version=2.2.2106.29420, Culture=neutral" />
</assemblies>
</compilation>
</system.web>
</configuration>
本文详细介绍如何在本地环境中安装并配置FCKeditor富文本编辑器,包括搭建虚拟目录、配置语言设置及上传组件等步骤。
1955

被折叠的 条评论
为什么被折叠?



