FCKeditor 2.3 configuration (sorting)

Source: Internet
Author: User
1. Simplified files (take the FCKeditor of ASP as an example)
1. Delete all folders starting with "_" first. These folders contain examples or other tools. Only the Editor folder, fckconfig. JS, FCKeditor. asp, FCKeditor. JS, fckstyles. XML, and fcktemplates. XML are retained.
2. Go to the Editor folder.
3, enter the Lang folder, only keep the zh-cn.js, en. JS, Zh. JS these three files, zh-cn.js is a simplified Chinese Language Pack, en. JS is not required, Zh. JS is in Traditional Chinese.
4. Exit the Lang folder and enter the skin folder. If you want to use the default FCKeditor milk yellow, delete the other two folders except the default folder. If you want to use other folders, I will give you a suggestion. If you don't want to use the default one, select silver, because Silver is gray and it won't be ugly, but the office2003 skin, I really do not like it anyway, and the image is relatively large, and the download time is increased, no!
5. Exit the skin folder and go to filemanager. First, go to filemanager/Browser/default/connectors/. Because I use ASP, delete all files except the ASP folder. Then go to filemanager/upload/and leave only the ASP folder.

Ii. modify configurations
1. fckconfig. js
(1) fckconfig. defaultlanguage
Fckconfig. defaultlanguage = 'en'; change to fckconfig. defaultlanguage = 'zh-cn'. Set the default language to simplified Chinese.
(2) fckconfig. toolbarsets ["Basic"]
If your editor is still used at the front-end of the website, for example, for message book or diary reply, you have to consider security. Do not use the default toolbar on the front-end or customize the function, you can either use the basic defined by the system, that is, the basic toolbar, and modify the content.
(3) fckconfig. contextmenu
FCKeditor supports the right-click function in the editing area. You are advised to change it for security purposes. Remove the image function and the Add link function, because the image and link and flash and image button add function allow the front-end page to directly access and upload files, if I don't change it here, I will upload a Trojan to you. Isn't it ready?
(4) fckconfig. fontnames
Add several common Fonts
(5) fckconfig. smileypath
If you want to use your own emoticon icon, skip the folder address of the emoticon icon and the file name of the emoticon icon below, the three numbers below are the number of emotices displayed on each line and the width and height of the pop-up window. The size depends on the size of the window arranged by the emoticon icon.
2. FCKeditor. asp
(1) sbasepath
Editor location, that is, the directory where FCKeditor. asp is located
3. FCKeditor. js
(1), this. basepath
Editor location, which is the same as the directory where FCKeditor. asp is located
4. Editor \ filemanager \ browser \ Default \ connectors \ ASP \ config. asp (this file is set to be uploaded)
(1) configisenabled
Change to configisenabled = true; otherwise, files cannot be uploaded.
(2) configuserfilespath
Set the directory as needed
5. Editor \ filemanager \ upload \ ASP \ config. asp (this file is set to upload quickly)
(1) configisenabled
Change to configisenabled = true; otherwise, files cannot be uploaded.
(2) configuserfilespath
Set the directory as needed
6. Editor \ filemanager \ upload \ ASP \ upload. asp
(1) Find the following Code
Dim resourcetype
If (request. querystring ("type") <> "") then
Resourcetype = request. querystring ("type ")
Else
Resourcetype = "file"
End if
Add the following code: configuserfilespath = configuserfilespath & resourcetype &"/"
In this way, the uploaded files can be stored in different directories by file type.

ReferenceArticle:
1. FCKeditor official documentation
Http://www.fckeditor.net/support/default.html
2. Wysiwyg Web Editor: FCKeditor 2.2 setting. Modification. Introduction to usage and freetextbox
Http://www.blogjava.net/gump/articles/43556.html
3. Modify and set fckeditor2.0 online editor-File Upload Management
Http://3rgb.com/ B? Act = viewthread and threadid = 324

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.