Asp.net: Add. Net (2.0c #) FCKeditor online editor step

Source: Internet
Author: User

1. Download the compressed editor package of the current version. Source code

2. decompress and open the folder with the following files:

3. Add "select items" in vs to load fredck. fckeditorv2.dll under the bin in this folder.

4. Add

Code
< Appsettings >
< Add key = " FCKeditor: basepath " Value = " ~ /FCKeditor/ " />
< Add key = " FCKeditor: userfilespath " Value = " ~ /Userfiles/ " />
</ Appsettings >

5. Fill in the third folder FCKeditor in the figure under the project folder.

6. Drag and Drop the online compiler that has been loaded to the vs toolbox to the desired page location. After the page is loaded, the following will appear.

7. Complete.

8. Possible errors:

(1) garbled characters should appear in the editor after the page is loaded: the Web. config file is not modified. Check step 4.

(2) Note:HTTP 404. The resource you are looking for (or one of its Dependencies) may have been removed, its name has been changed, or it is temporarily unavailable. Check the following URL and make sure it is correctly spelled.

Request URL:/Clubweb/FCKeditor/Editor/fckeditor.html
An error occurred while introducing the FCKeditor folder directory. Check Step 5.

"/Clubweb" Application Program Server error.

The resource cannot be found.

 

9. Tips: from the infinite space blog: http://www.5x-space.cn/post/2008/09/02/net20 (c) fckeditore5858de8b4b9e59ca8e. aspx

There should be no less instructions for using this online editor on the Internet, and some of them are quite detailed, but it may not be very useful for beginners at once. What's more, those who are not familiar with the intercom are also half-understood. So it will be quite tiring to use, and I don't want to do it after half a day. Because it cannot be done.
I didn't like the FCKeditor online editor a few days ago, because I don't know how to use it, and I don't know how to set it for general functions. So it took me a day to make up my mind to get him out.
The following is my experience in the setup process and I will share it with beginners.
You can directly download a package (fckeditor_2.6.3b.tar.gz) on the official website of fckeditor. this package contains many Programming Language ). (This is not provided here. If you are interested, you can download it from the official website .)
The source code here has processed all the content in these two packages. You only need to make simple settings.
The settings include path settings, language settings, function settings, and style settings.
Path setting: it can be divided into the editor path and the file upload path. The editor path is in (FCKeditor/FCKeditor. JS), search (FCKeditor. basepath = '/FCKeditor/';) when setting this, you should pay attention to the location where your online programmer is located. Use this to set. The file upload path is set in (userfilespath = "/userfiles/";) in (FCKeditor \ editor \ filemanager \ connectors \ aspx \ config. ascx.
Language settings: The system has many languages. I only have two languages (Chinese and English ). How should I set the language version? You open (FCKeditor/fckconfig. JS), and then find (fckconfig. defaultlanguage = '') set it to (zh-CN); if you want to modify this file, you can open (FCKeditor \ editor \ Lang \ zh-cn.js) you can modify the corresponding button description.
Function settings: mainly divided into whether the upload function is enabled and whether the function key is enabled (default. aspx. CS. You can set specific functions directly in it.
Style settings: when using the editor, you can choose a variety of styles and set different skins in the style. In the (FCKeditor/fckconfig. JS) file, you can directly set the style here (fckconfig. toolbarsets). Generally, there are only two default options. You can add and name it yourself. When setting the style, you can find (fckconfig. skinpath = fckconfig. basepath + 'Skins/silver/';) to set the corresponding skin.
Some of these settings can be set directly in (Web. config.
The general function is set like this, and nothing else can be set. These functions will work, and the setting of an editor is basically not a problem. If you have any comments or mind, you can leave a message directly.
Last Updated:
Update content:
The setting of the upload function is mainly used in permission settings. For example, on a website such as Baidu or alimama, you must add materials to make it impossible to upload files (images, RAR... File)
You can set it in this way, go to the... Aspx. CS file, and set it in page_load.
Fckeditor1.config ["linkbrowser"] = "false"; // upload server browsing
Fckeditor1.config ["imagebrowser"] = "false"; // browse the image server
Fckeditor1.config ["flashbrowser"] = "false"; // view the flash Server
Fckeditor1.config ["linkupload"] = "false"; // File Upload
Fckeditor1.config ["imageupload"] = "false ";
Fckeditor1.config ["flashupload"] = "false ";

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.