FCKeditor 2.6.2 Configuration Modification instructions
========================================================== ======================================
1. Streamline the FCKeditor directory. Only the following three files and one folder are left in the directory.
Fckconfig. js
Fckstyles. xml
Fcktemplates. xml
[Editor]
Note:
Remove FCKeditor. asp from the FCKeditor Directory, which is more secure and calls
The FCKeditor. js file is not required after testing. Because we use ASP, this file is generally retained on the Internet. In fact, if you do not need JS calls, it is redundant and deletion is also a security reason.
Simplified FCKeditor
1. Delete all files and folders starting with "_ underline" in the FCKeditor folder.
2. Delete all languages except the ASP folder in the FCKeditor \ editor \ filemanager \ connectors \ folder.
========================================================== ======================================
2. Modify the FCKeditor \ fckconfig. JS File
1. Change all the following parameters to false for security consideration.
Fckconfig. linkbrowser = true;
Fckconfig. imagebrowser = true;
Fckconfig. flashbrowser = true;
Fckconfig. linkupload = true;
Fckconfig. imageupload = true;
Fckconfig. flashupload = true;
Use the following method to enable the upload settings:
<%
Dim ofckeditor
Set ofckeditor = new FCKeditor
With ofckeditor
. Basepath = sbasepath & "FCKeditor /"
. Config ("linkbrowser") = "true"
. Config ("imagebrowser") = "true"
. Config ("flashbrowser") = "true"
. Config ("linkupload") = "true"
. Config ("imageupload") = "true"
. Config ("flashupload") = "true"
. Value = content
. Height = 350
. Create "content"
End
%>
%> Dim ofckeditor
Set ofckeditor = new FCKeditor
With ofckeditor
. Basepath = sbasepath & "FCKeditor /"
. Config ("linkbrowser") = "true"
. Config ("imagebrowser") = "true"
. Config ("flashbrowser") = "true"
. Config ("linkupload") = "true"
. Config ("imageupload") = "true"
. Config ("flashupload") = "true"
. Value = content
. Height = 350
. Create "content"
End
%>
2. Modify the language used for upload. The default value is Php.
VaR _ filebrowserlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py
3. Other modifications:
Fckconfig. toolbarcombopreviewcss = 'HTTP: // www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd "> ';
Fckconfig. defaultlanguage = 'zh-cn ';
Fckconfig. tabspaces = 1;
Remove the emoticon menu smiley or remove the emoticon folder images \ smiley from the fck directory to prevent the fck background address from being exposed.
Fckconfig. smileypath = fckconfig. basepath + 'images/smiley/MSN/'; 'emoticon folder address
Fckconfig. smileyimages = comment '];
========================================================== ============================================== 3. Modify the file to open and upload
File: FCKeditor \ editor \ filemanager \ connectors \ ASP \ config. asp
A) make the configuration take effect
Configisenabled = true
B) set the upload directory
Modify
Configuserfilespath = "/yourpath/" '"/userfiles /"
C) modify the directory uploaded to the current day, for example, "image/2008-7-1/7say.gif", "file/2008-7-1/7say.rar ",
Configfiletypespath. Add "file", configuserfilespath & "file/" 'add & "file /"
Configquickuploadpath. Add "file", configuserfilespath & "file/" & date "add &" file/"& date
Configfiletypespath. Add "image", configuserfilespath & "image/" 'add & "image /"
Configquickuploadpath. Add "image", configuserfilespath & "image/" & date "add &" image/"& date
Configfiletypespath. Add "Flash", configuserfilespath & "Flash/" 'add & "Flash /"
Configquickuploadpath. Add "Flash", configuserfilespath & "Flash/" & date "add &" Flash/"& date
Configfiletypespath. Add "Media", configuserfilespath & "Media/" 'add & "Media /"
Configquickuploadpath. Add "Media", configuserfilespath & "Media/" & date "add &" Media/"& date
'This way, you can quickly upload a file. You can view and select the uploaded image on the Browser Server and test it in person.
========================================================== ========================================================== ==========
4. Modify the random file name generated by the upload
File: FCKeditor \ editor \ filemanager \ connectors \ ASP \ commands. asp
Add the following method at the bottom of the file:
'// Obtain a non-repeated serial number to generate a random file name
Public Function getnewid ()
Dim rannum, dtnow
Randomize
Dtnow = now ()
Rannum = int (90 * RND) + 10
Getnewid = year (dtnow) & right ("0" & month (dtnow), 2) & right ("0" & Day (dtnow), 2) & right ("0" & hour (dtnow), 2) & right ("0" & minute (dtnow), 2) & right ("0" & Second (dtnow ), 2) & rannum
End Function
'====================================
Modify rows 163-165
'Get the uploaded file name.
Sfilename = ouploader. File ("newfile"). Name
Sextension = ouploader. File ("newfile"). ext
Is
'Get the uploaded file name.
Sextension = ouploader. File ("newfile"). ext
'Sfilename = ouploader. File ("newfile"). Name
Sfilename = getnewid () & "." & sextension '<-- Modified row
========================================================== ========================================================== ==========
5. Modify and quickly upload Chinese garbled characters (I have never met anyone on the Internet)
File: FCKeditor \ editor \ filemanager \ connectors \ ASP \ Io. asp
Modify row 215:
Add two lines after response. Clear:
Response. codePage = 65001 '<---- newly added row
Response. charset = "UTF-8" '<---- new row