Recently in the project to use the latest version of FCKeditor, there are some issues worth noting, now write for your reference.
1. ASP pages use GB2312 encoding.
2. Download FCKeditor2.1.1.
3. Unzip the FCKeditor2.1.1 to the root of the project, and the directory structure is:/project name/fckeditor/.
4. Modification/project name/fckeditor/editor/filemanager/browser/default/connectors/asp/config.asp and/project name/fckeditor/editor /filemanager/upload/asp/config.asp These two files, change the value of the configisenabled variable to true to allow the upload feature, which is used to set up a quick upload The value of the Configuserfilespath variable is set to/upload/so that the upload file is saved to a subdirectory in the/project name/upload/directory.
5. Modification/project name/fckeditor/editor/filemanager/browser/default/connectors/asp/connector.asp and/project name/fckeditor/ editor/filemanager/upload/asp/upload.asp These two files, the first line in the file <%@ codepage=65001 language= in the "VBScript"%> codepage=65001 Remove, this step is very critical, otherwise use GB2312 will produce garbled (thanks Comrades HHH3000).
6. Upload file does not support Chinese filename, to solve this problem, can be EditPlus will fckeditor all the files in the Utf-8 replace gb2312 can, whether there are side effects are not known.
7. Add the following code to the ASP to create the online editor:
At the top of the page, add the <!--#include file= "/fckeditor/fckeditor.asp"-->
Add the following code at the appropriate location
<%
Dim Ofckeditor
Set ofckeditor = New FCKeditor
' Ofckeditor.basepath = '/fckeditor/' Sets the location of the editor directory in the project
Ofckeditor.toolbarset = "Default"
Ofckeditor.width = "550"
Ofckeditor.height = "400"
Ofckeditor.value = "" ' Ofckeditor.value = rs ("content") modify content
Ofckeditor.create "Content"
%>
8. With the above steps you can use FCKeditor in ASP, and for more settings on FCKeditor, see the following article:
Setup and modification of the FCKeditor 2.0 online editor and its use
FCKeditor2.0 Online editor changes and settings-File upload part of the Management Section
It will then bring the application of FCKeditor in the JSP.