Experience in using the text editor FCKeditor in ASP. net2.0

Source: Internet
Author: User
The Online Web text editor is required for programming. The freetextbox (which we use on the Intranet) was the first one. Unfortunately, freetextbox is charged now. This intranet revision will be available again. I have locked two models after searching the Internet for half a day:
The first is cuteeditor6.0, which is a commercial software, but now there is a Chinese cracked version, which has powerful functions and is easy to set up. Unfortunately, the cracked version always infringes on copyright. Most importantly, it is not open-source and cannot be modified.
The second is FCKeditor. The latest version is 2.5.1, which is open-source and multilingual and supports Chinese. Powerful enough, but difficult to set up. After studying for two days, I can finally use it normally, successfully, and completely.

The following are some experiences. I used to modify controls under ASP. net2.0. There are not many articles on the Internet. I encountered some problems in my actual operations. I couldn't find the answer on the Internet, so it was hard to solve it completely. There are several problems:

1. After running, when "insert image" or "insert file" is used, click "Browse server". The error "this connector is disabled" is returned. please check the "Editor/filemanager/connectors/aspx/config. ascx "file.

Solution: In the config. aspx file, there is an option.
Private bool checkauthentication ()
{
Return false;
}
The default value is false. If it is set to true, the Browser Server can be used normally.

2. browsing and uploading using "insert image" and "insert Flash" are normal. However, when "insert HYPERLINK" is used, it is found that browsing and uploading are normal, but when direct uploading is used, the prompt is: Invalid request, which is hard to understand. No one has ever encountered this online query for a long time. Then, when I browsed the fckconfig. js file, I found the problem.
In fckconfig. JS, after comparing linkupload and imageuplink, we found that:

Fckconfig. linkupload = true;
Fckconfig. linkuploadurl = fckconfig. basepath + 'filemanager/connectors/'+ _ quickuploadlanguage +'/upload. '+ _ quickuploadextension;

Fckconfig. imageupload = true;
Fckconfig. imageuploadurl = fckconfig. basepath + 'filemanager/connectors/'+ _ quickuploadlanguage +'/upload. '+ _ quickuploadextension + '? Type = image ';

At the end of imageupload, the parameter type = image exists, but the parameter does not exist in linkupload. First, try to add type = link, and then add type = file. So the problem is that the parameter"Type = File".

Although it is still strange to solve this problem, my program was stored on its official website and should not be neglected! I wasted my whole day !!

3. "Editor/filemanager/connectors/aspx/config. aspx "has a parameter: userfilespath ="/userfiles/";, which should be replaced with web. the User File Upload path is the same as userfilespath in config. Userfilesabsolutepath = "" the same as above (but I still don't know what to use the userfilesabsolutepath parameter)

4. in use, it is found that the files uploaded by browsing are automatically uploaded by category. images are uploaded to the image and files are uploaded to the file. However, if direct upload is used, all files are stored in the root directory of the upload folder. After research, we find that as long as you change/aspx/config. typeconfig ["file"] in Aspx. you can set quickuploadpath to typeconfig ["file"]. filesabsolutepath is the same.

5. Compile a simple page. The default value is <% @ page Language = "C #" codebehind = "webform1.aspx. CS "autoeventwireup =" false "inherits =" Weste. webform1 "%>: add the parameter validaterequest = false. Otherwise, an error is returned when HTML code is submitted.

6. How to Solve the Problem of XML request error: internal server error (500) when using the file upload function in development. What is the internal Error 500?
Because ASP. net2.0 has the theme feature added, if you use stylesheettheme or theme for Web. config in your project, you need to modify it more. To the directory where FCKeditor is located, open/Editor/filemanager/upload/aspx/upload. aspx and/Editor/filemanager/Browser/default/connectors/aspx/connector. aspx files: Add theme = "" Or stylesheettheme = "" to the page tab to modify theme when you are using the project. The modification is as follows:

<% @ Page Language = "C #" inherits = "fredck. fckeditorv2.uploader "autoeventwireup =" false "theme =" "%> or <% @ page Language =" C # "inherits =" fredck. fckeditorv2.uploader "autoeventwireup =" false "stylesheettheme %>
Related Article

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.