FCKEDITOR 2.0 finally came out. The reason why the word was finally used is because this version adds Flash insertion functions to the expectations. It can be said that among all online editors, FCKEDITOR is currently the best editor on the Internet. It has powerful functions and supports multiple browsers. There is no platform restriction. It can be integrated with multiple web languages, multi -language support, open source, etc. ~~
For a new website, FCKEDITOR can take it directly and use it without any modification. But for most of the existing websites, some settings of FCKEDitor are not suitable for your use. This article aims to tell you simply modifying FCKEDITOR to facilitate the use of your website.
The first work is to streamline this functional editor, of course, the file is streamlined rather than functional simplification. Here I take the ASP version of FCKEDITOR as an example and enter the FCKEDITOR 2.0 folder. First, delete the _ as a folder. These folders are placed with examples or some other tools. In fact, it only retains the Editor folder, FCKCONFIG.JS, FCKEDITOR.ASP, FCKEDITOR.JS, FCKSTYLES.XML, FCKTEMPLATES.XML. Source folder deletes. Here are some source files, which are useless for use.
Enter the Images folder and delete the Smiley folder. Some files are the target of emoticons. Since I will use my own emoticon icon, first delete them. Of course, if you want to use the emoticon icon here Drop. Exit the Images and then enter the LANG folder. The things here can be cleaned, and only four files: FCKLANGUGEMANAGER.JS, ZH-CN.JS, EN.JS, ZH.JS. The first file is the language configuration File, with it, it can be set to corresponding to the corresponding language files in the corresponding language files. ZH-CN.JS is a simplified Chinese language package. Needless to say, zh.js is traditional Chinese. How about it? It's a few hundred k, it's cool ~
Then exit the LANG folder and enter the SKIN folder. If you want to use the milk yellow default milk yellow of FCKEDitor, delete the other two folders except the default folder. If you want to use something else, then consider yourself. It ’s a suggestion. If you do n’t want to use the default, then choose that Silver, because the silver is gray and any color. And the picture is relatively large, and the download time is added, don't!
The last step of streamlined, exit the Skin folder, and then enter the FileManager. If you are not using the latest version of Fckeditor, then a folder Browser here, the new version also has a UPLOAD folder. Come on, first enter the FileManager/Browser/default/connectors/, because I use ASP, so except for ASP folders, all delete. Then enter the FileManager/UPLOAD/. Similarly, only the ASP folder is left. At this point, the simplification of the editor has ended. Next, we set the editor to modify it.
The first modified file, which is the total configuration file of the fckeditor, is located in the FCKCONFIG.JS file in the root directory. Please perform according to the following list (based on the FCKEDITOR 2.0 as the permanent):
Find line 20 FCKCONFIG.DEFAULTLANGUAGE = 'EN'; change to fckconfig.defaultLanguage = 'zh-cn';
Find the 40th line fckconfig.tabspaces = 0; change to fckconfig.tabspaces = 1; that is, you can use the TAB key in the editor domain.
If your editor is still used on the front desk of the website, for example, when it is used for a message book or a diary reply, then you have to consider safety. Do not use the TOOLBAR of Default at the front desk. Use the system that has been defined by the system, that is, the basic TOOLBAR,
Find line 64:
| The following is the code fragment: Fckconfig.Toolbarsets [basic] = [ ['Bold', 'italic', '-', 'orderEdlist', 'unableRedlist', '-',/* 'link',*/ 'unlink', 'style', 'style', 'fontSize', ' TextColor ',' BGCOLOR ','-',' Smiley ',' Specialchar ',' Replace ',' Preview '] ]; |
This is the BASIC I have changed. Remove the image function and remove the adding link function, because the function of the image and link and Flash and image buttons can allow the front desk page to directly access and upload files. Don't you finish it right away? But this is not enough, FCKEDitor also supports the right mouse button function in the editor domain.
Find line 77:
Fckconfig.fontnames = 'Arial; Comic Sans Ms; Courier New; TAHOMA; Times New Roman; Verdana';
Add a few types of fonts we often use fckconfig.fontnames = 'Songti; Black Sterior; Lishu; Kaizi_GB2312; Arial; Comic Sans ms; Courier New; Times; Times New Roman; Verdana';