FCKeditor 2.6.3在ASP.NET中的配置方法

FCKEditor官方下载地址:http://www.fckeditor.net/download 

在官方网站下载 
FCKeditor 2.6.3: FCKeditor_2.6.3.zip  

FCKeditor.Net :FCKeditor.Net_2.6.3.zip   

配置方法如下:  

一、删除不必要的文件 

从官方下载下来的FCKEditor2.6.3大小有3.81M(解压后),其实有很多文件对于只用 ASP.NET的来讲是不需要的,我们可以删除不必要的文件:解压缩FCKeditor_2.6.3.zip到vs2008对应的项目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的版本  
三、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/"/>  
    <!--在2.6中配置文件配置路径-->  

  </appSettings>  

五、页面调用  
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>  

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

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

 六、图片上传

 解决方法:

    我们需要在"fckeditor"editor"filemanager"connectors"aspx"文件夹中找到config.ascx文件,并将其private bool CheckAuthentication() 方法的返回值改成true

原文地址:https://www.cnblogs.com/yeagen/p/1333159.html