It is compatible with most mainstream browsers and supports programming environments such as ASP. NET, ASP, ColdFusion, PHP, Java, active-FoxPro, lasso, Perl, and ython.
Official Website http://www.fckeditor.net/
Official Document http://wiki.fckeditor.net/
Http://www.fckeditor.net/download/default.html
FCKeditor installation and configuration
Download two zip packages for fckeditor2.63.zip and FCKeditor. net2.63
(A) fckeditor_2.6.3 is a resource file such as HTML files, JavaScript files, and images.
(B) fckeditor.net_2.6.3.zip is an ASP. NET control DLL file.
Add reference to FCKeditor in ASP. NET Project
1. Select Add reference... for the project ...), Find the Browse tab, locate the extracted fredck. fckeditorv2.dll, and click OK.
2. to facilitate rad development, you can add the FCKeditor Control to the toolbox of Vs, expand the common label Group of the Toolbox (general), right-click the component (choose items ...), Find the Browse button in the dialog box, locate fredck. fckeditorv2.dll, and then confirm it.
3. Configure web. config and add it to the <etettings> node, as shown below:
CopyCode The Code is as follows: <etettings>
<Add key = "FCKeditor: basepath" value = "~ /Web/FCKeditor/"/>
<Add key = "FCKeditor: userfilespath" value = "~ /Web/upload/"/>
</Appsettings>
FCKeditor Configuration:
Go to the FCKeditor folder and edit the fckconfig. js file.
1. Modify:Copy codeThe Code is as follows: VaR _ filebrowserlanguage = 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'php'; // ASP | aspx | CFM | lasso | PHP
Is:Copy codeThe Code is as follows: VaR _ filebrowserlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'aspx '; // ASP | aspx | CFM | lasso | PHP
2. configuration language
Modify:
Fckconfig. defaultlanguage = 'en ';
Changed:
Fckconfig. defaultlanguage = 'zh-cn ';
3. Configure the skin, including default, office2003, and silver style. You can use the default style.
Fckconfig. skinpath = fckconfig. basepath + 'Skins/default /';
4. You can use the tab key in the editor. (1 is yes, 0 is no)
Change fckconfig. tabspaces = 0; To fckconfig. tabspaces = 1;
5. add several common fonts:
Fckconfig. fontnames = '; _ gb2312; Arial; Comic Sans MS; Courier New; tahoma; Times New Roman; verdana ';
6. The default font in the editor is 12px. You can modify the style sheet to meet the requirements. Open/Editor/CSS/fck_editorarea.css and modify the font-size attribute.
7. Security
If your editor is not authenticated at the front end, we recommend that you use the basic toolbar.
Fckconfig. toolbarsets ["Basic"] = [
['Bold ', 'italic', '-', 'orderedlist', 'unorderedlist', '-', 'link', 'unlink', 'image ', '-', 'about']
];
8. Click Browse server in the Upload File window. The server didn't send back a proper XML... may appear ..... The error message is that FCKeditor requires different types of files to be uploaded to different directories, including directories such as file, image, falsh, and media. You can create them first.
Security Configuration of FCKeditor. Net 2.6
File Upload is always an easy-to-use attack Channel:
Open Editor/filemanager/connectors/aspx/config. ascx Copy code The Code is as follows: Private bool checkauthentication ()
{
// To prevent arbitrary users from opening the upload page or browsing server files
// We recommend that you integrate the permission here with your background management permissions. If verification is not required, you can directly return true.
//------------------------------------------------
// 1. Assume that you use session to store user login authentication information, and assume that the session key is Auth.
// Return
// Return (session ["auth"]! = NULL & session ["auth"] = "Verification value ");
// 2. If you use Form Verification, you can verify
// Return page. User. Identity. isauthenticated;
// Warning: do not simply return "true". By doing so, you are allowing
// "Anyone" to upload and list the files in your server. You must implement
// Some kind of session validation here. Even something very simple...
//
// Return (session ["isauthorized"]! = NULL & (bool) session ["isauthorized"] = true );
//
//... Where session ["isauthorized"] is set to "true" as soon as
// User logs in your system.
Return true;
}
My description of the previous section in Chinese and usage s