百度空间 | 百度首页 
 
查看文章
 
FCKeditor 2.6.4在ASP.NET(2.0)中的安装、配置方法
2009-05-19 19:11
FCKeditor 2.6.4在ASP.NET中的安装、配置方法
FCKeditor是一款功能强大的开源在线文本编辑器(DHTML editor),使你在web上可以使用类似微软Word 的桌面文本编辑器的许多强
大功能。FCKeditor目前的最新版本是2.6.4,本文以FCKeditor2.6.4介绍在asp.Net中的配置方法。
FCKEditor官方下载地址:http://www.fckeditor.net/download

在官方网站下载 http://sourceforge.net/project/showfiles.php?group_id=75348

FCKeditor 2.6.4 January 31, 2009 Release notes     Monitor this package Download
FCKeditor.Java 2.4.1 October 14, 2008 Release notes     Monitor this package Download
FCKeditor.Lasso 2.1 September 9, 2005 Release notes     Monitor this package Download
FCKeditor.Net 2.6.3 July 26, 2008 Release notes     Monitor this package Download
FCKeditor.Plone 2.4.3 August 24, 2007 Release notes     Monitor this package Download
选择 FCKeditor2.6.4和FCKeditor.Net2.6.3进行下载。

配置方法如下:
一、删除不必要的文件
从官方下载下来的FCKEditor2.6.4,其实有很多文件对于只用ASP.NET的来讲是不需要的,我们可以删除不必要的文件:解压缩
FCKeditor_2.6.4.zip到vs2005对应的项目fckeditor文件夹中,同时把文件夹内带_的文件夹和文件一并删除:

1.fckeditor目录下除editor目录、fckconfig.js、fckeditor.js fckstyles.xml fcktemplates.xml 这几个保留,其余的全部删除
2.editor\filemanager\connectors目录中除aspx目录外全部删除
3.editor\lang目录中除en.js、zh.js 、zh-cn.js外全部删除
4.删除_samples目录,当然如果你想看示例,就不要删除这个目录了。
二、下载FCKeditor.Net_2.6.3.zip。解压缩,将bin/Release中的FredCK.FCKeditorV2.dll拷贝到网站或项目的bin目录内。这里
要注意选择一下asp.Net的版本,我们这里选择的是.net2.0的版本。
三、fckconfig.js修改:
FCKConfig.DefaultLanguage = ’zh-cn’ ;  
var _FileBrowserLanguage = ’aspx’ ;  
var _QuickUploadLanguage = ’aspx’ ;

四、web.config相关配置:
<appSettings>
    <add key="FCKeditor:BasePath" value="~/fckeditor/"/>
    <add key="FCKeditor:UserFilesPath" value="~/upload/"/>
</appSettings>
五、页面调用
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<FCKeditorV2:FCKeditor ID="FCKeditor" runat="server" ToolbarSet="Basic"></FCKeditorV2:FCKeditor>

如果设置很多的工具条,把ToolbarSet="Default" 就可以实现很多工具按钮的效果了

取值之只要 FCKeditor.Value就可以轻松实现

如果出现this connector is disabled的错误,请打开editor/filemanager/connectors/aspx/config.ascx修改CheckAuthentication()方法,让其返回true即可解决这个问题。


类别:默认分类 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu