Application of FCKeditor2.1.1 in ASP

Source: Internet
Author: User

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.

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.