Recently, the latest FCKeditor version has been used in the project. It is worth noting that there are some issues. It is now provided for your reference.
1. The ASP page uses gb2312 encoding.
2. Download fckeditor2.1.1.
3. Decompress fckeditor2.1.1 to the root directory of the project. The directory structure is \ Project name \ FCKeditor \.
4. modify \ Project name \ FCKeditor \ editor \ filemanager \ browser \ Default \ connectors \ ASP \Config. aspAnd \ Project name \ FCKeditor \ editor \ filemanager \ upload \ ASP \Config. aspIn these two files, change the value of the configisenabled variable to true to allow the upload function. The latter is used to set quick upload. The value of the configuserfilespath variable is set to \ upload \, in this way, the uploaded file is saved to the subdirectory under the \ Project name \ upload \ directory.
5. modify \ Project name \ FCKeditor \ editor \ filemanager \ browser \ Default \ connectors \ ASP \Connector. aspAnd \ Project name \ FCKeditor \ editor \ filemanager \ upload \ ASP \Upload. aspRemove codePage = 65001 from the first line of the file <% @ codePage = 65001 Language = "VBScript" %>. This step is critical, otherwise, garbled characters will be generated when gb2312 is used (thanks to comrade-in-arms hhh3000 ).
6. the uploaded file does not support Chinese file names. To solve this problem, you can use editplus to replace UTF-8 in all FCKeditor files with gb2312. It is unknown whether there are any side effects.
7. Add the following code to ASP to create an online editor:
Add <! -- # Include file = "/FCKeditor. asp" -->
Add the following code to 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. After the above steps, you can use FCKeditor in ASP. For more information about FCKeditor settings, see the following article:
FCKeditor 2.0 online editor setting and modification and use
Modify and set fckeditor2.0 online editor-File Upload Management
Then, FCKeditor will be applied to JSP.