Streamlining and use of fckeditor_2.4.3

Source: Internet
Author: User
FCKeditor's streamlining and use of the network has a lot of information, but the introduction of incomplete or not enough detail. May be my folly, anyway, when I first use FCKeditor, there is this feeling, so this time I try to first use FCKeditor friend through my introduction to this article can be smooth operation.
First, Streamline:
1. Delete the _samples folder and the. txt file and the. pl file in the FCKeditor folder.
1.1. In fact, as long as the reserved editor folder, Fckconfig.js, fckeditor.asp, Fckeditor.js, Fckstyles.xml, Fcktemplates.xml and so on can be (this is what I see on the net, when I use or press (1)).
2. After entering the Editor folder, delete the _source folder, here are some source files.
3. You can open the image folder, delete the smiley file, which is stored in an emoticon, if you want to use your own, you can replace.
4. Open lang file, only keep Zh-cn.js, En.js, zh.js these three JS on OK.
5. Open the FileManager file and browser/default/connectors the aspx file below.
6. Open the FileManager file and enter upload to retain only the ASPX file.
As for the Skins folder inside is the editor's appearance, if interested can modify it.
Here, the streamlining is complete, and here are some modifications to the original file:
The fckconfig.js in the file
fckconfig.defaultlanguage = ' en ';
To
Fckconfig.defaultlanguage = ' ZH-CN ';
var _filebrowserlanguage = ' asp '; ASP | aspx | CFM | Lasso | Perl | php | Py
var _quickuploadlanguage = ' asp '; ASP | aspx | CFM | Lasso | Php
Modified to:
var _filebrowserlanguage = ' aspx '; ASP | aspx | CFM | Lasso | Perl | php | Py
var _quickuploadlanguage = ' aspx '; ASP | aspx | CFM | Lasso | Php
fckconfig.tabspaces = 0; Changed to Fckconfig.tabspaces = 1; That is, you can use the TAB key in the Editor field.
The next step is to upload the image path settings,
The premise of setting the path is to determine the location of the FCKeditor file in the program, usually in the root position.

1, configure Webconfig, add in <appSettings> node, as follows:

<appSettings>

<add key= "Fckeditor:basepath" value= "/project name/fckeditor/"/>

<add key= "Fckeditor:userfilespath" value= "/project name/files/"/>

</appSettings>

BasePath is the path where FCKeditor is located
Userfilespath is the directory where all uploaded files are located
The operation on FCKeditor is complete, and references to it are made in the project.
First add FredCK.FCKeditorV2.dll to the project bin file.

one. Folder Description Xml:namespace PREFIX = O/>

fckeditor.net_2.2 provided. NET components

Download Address: Http://nchc.dl.sourceforge.net/sourceforge/fckeditor/FCKeditor.Net_2.2.zip

fckeditor_<? Xml:namespace PREFIX = ST1/>2.4.3 Core implementation section (including some important JS files)

Download Address: Http://downloads.sourceforge.net/fckeditor/FCKeditor_2.4.3.zip

two. deployment in the VS2005

1 Add the component to the toolbar and copy the FredCK.FCKeditorV2.dll file from the fckeditor.net_2.2 folder bin to the bin of the Web site

2 Copy the FCKeditor folder under fckeditor_2.4.3 to the site Engineering home directory

3 Set the Fckeditor/fckconfig.js:

First change FCK default language en to zh-cn,fckconfig.defaultlanguage = ' en '; Replace with fckconfig.defaultlanguage = ' ZH-CN ';

Then change the FCK default upload using the component language of ASPX,

var _filebrowserlanguage = ' asp ';

var _quickuploadlanguage = ' asp ';

Replaced by

var _filebrowserlanguage = ' aspx ';

var _quickuploadlanguage = ' aspx ';

4 Open WEBCONIFG. XML, setting two keys in <appSettings>

(1) <add key= "Fckeditor:basepath" value= "FCKeditor directory path"/>

Note: When debugging a program, the "FCKeditor directory" is set to "/project name/fckeditor/";

When uploaded to the virtual host, the "FCKeditor directory" is set to "fckeditor/"

(2) <add key= "Fckeditor:userfilespath" value= "store path of image upload"/>

Note: When debugging the program, "The Image upload path" set to "/project name/Picture relative path";

When uploaded to the virtual host, "Image upload path" set to "/Picture relative path";

(if it is changed to "Files", the picture will be saved to fckeditor/editor/filemanager/browser/default/connectors/aspx/files/image;)

Example:

When the local machine is debugged:

<add key= "Fckeditor:basepath" value= "/myproject/fckeditor/"/>

<add key= "Fckeditor:userfilespath" value= "/myproject/images/"/>

When uploaded to the virtual host:

<add key= "Fckeditor:basepath" value= "fckeditor/"/>

<add key= "Fckeditor:userfilespath" value= "/images/"/>

(3) validaterequest= "false" in the page that references the control

<%@ Page language= "C #" autoeventwireup= "true" codefile= "FckDemo.aspx.cs" inherits= "Fckdemo" validaterequest= " False "%>

(4) The support on the official website mentions that if you use ASP.net 2.0 and theme, then you need to open fckeditor/editor/filemanager/upload/aspx/upload.aspx and fckeditor/ Editor/filemanager/browser/default/connectors/aspx/connector.aspx file, and add Theme= "" to the first line. such as program code:
<%@ Page language= "C #" inherits= "FredCK.FCKeditorV2.FileBrowserConnector" autoeventwireup= "false" Theme= ""%>

three. Streamlining of documents

When uploading to a virtual host, you can streamline the FCKeditor folder based on the development language you are using. Use asp.net here.

(1) Enter the FCKeditor folder, delete all "_" Files and folders, these are examples, only the editor folder, Fckconfig.js, Fckeditor.js, Fckstyles.xml, Fcktemplates.xml on it;
(2) into the Editor folder, delete the "_source" folder, which put the same source file;
(3) Return to the previous directory to enter the FileManager folder, There are browser and upload two folders. Enter Browser/default/connectors, only the ASPX folder, the rest of the delete; Mcpuk directory can also be deleted; upload, just keep the aspx folder,
(4) Retreat to editor and go to the Images folder, Inside the smiley is an expression icon, there are two series of MSN and fun, if you want to use your own emoticons, you can delete them; If you want to use the emoticons here, don't delete them;
(5) The language pack is in Lang, if it's only in Simplified Chinese, Then only keep fcklanguagemanager.js, zh-cn.js two files on the line, the proposal also retained En.js (English), Zh.js (Traditional Chinese) two files, Fcklanguagemanager.js is a language configuration file, with its ability and fckconfig.js set in pairs, corresponding to the corresponding language files, must be retained.
(6) and then exit the Lang folder and enter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.