Apply fckeditor2.1.1 in ASP

Source: Internet
Author: User

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.

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.