Abstract: FCKeditor is a powerful open-source online text editor. It enables you to use many powerful functions similar to Microsoft Word desktop text editor on the web. This document uses fckeditor2.6.3 to introduce the configuration method in ASP. NET.
Difficulty: 10
FCKeditor is a powerful open-source online text editor (DHTML Editor). It enables you to use many powerful functions similar to Microsoft Word desktop text editor on the web. The latest version of FCKeditor is 2.6.3. This document describes how to configure fckeditor2.6.3 in ASP. NET.
FCKeditor official: http://www.fckeditor.net/download
Download from the official website
FCKeditor 2.6.3: fckeditor_2.6.3.zip
FCKeditor. Net: fckeditor.net_2.6.3.zip
The configuration method is as follows:
1. Delete unnecessary files
The size of fckeditor2.6.3 downloaded from the official website IS 3.81 MB (after decompression). In fact, many files only use ASP. net is not required. We can delete unnecessary files: Decompress fckeditor_2.6.3.zip to the FCKeditor folder of the corresponding project of vs2008, and delete the folders and files with _ in the folder together:
1. The FCKeditor directory contains the editor directory, fckconfig. JS, and FCKeditor. jsFckstyles. xmlFcktemplates. XML is retained, and all others are deleted.
2. Delete all files except the aspx directory in the editor \ filemanager \ connectors directory
3. In the editor \ Lang directory, all except en. JS, Zh. JS, and zh-cn.js are deleted.
4. Delete the _ samples directory. If you want to see the example, do not delete the directory.
2. Download fckeditor.net_2.6.3.zip. Decompress the package and copy fredck. fckeditorv2.dll in Bin/release to the bin directory of the website or project. Select the ASP. NET version.
3. Modify fckconfig. JS:
Fckconfig. defaultlanguage = 'zh-cn ';
VaR _ filebrowserlanguage = 'aspx ';
VaR _ quickuploadlanguage = 'aspx ';
4. Web. config Configuration:
<Deleetask>
<Add key = "FCKeditor: basepath" value = "~ /FCKeditor/"/>
<Add key = "FCKeditor: userfilespath" value = "~ /Upload/"/>
<! -- Configure the file configuration path in 2.6 -->
</Appsettings>
5. Page call
<% @ Register Assembly = "fredck. fckeditorv2" namespace = "fredck. fckeditorv2" tagprefix = "fckeditorv2" %>
<Fckeditorv2: FCKeditor id = "fckeditor1" runat = "server" toolbarset = "Basic"> </fckeditorv2: FCKeditor>
the value is fckeditor1.value.