FCKedit (asp.net) detailed configuration and download

Source: Internet
Author: User

Click to download the FCKedit simplified full package (2.4)

Step 1: Download The FCK package, which is already packaged (my version is fckedit2.4). You can also download the latest version at www.fckeditor.net. Remember that there are two files: fckeditor (source file) and FCKeditor. Net (. net bin file.
Step 2: (do not perform this step if you download my package.) delete the files and folders starting with '_' in the copied FCKEditor, of course, if you are developing, you can also choose not to delete it, which contains examples and debugging pages. Then there is the skin file. You don't need to delete it. For example, if I use the default skin in my thin bag, I will delete the others, the Language Pack contains a few characters starting with en (indicating different English letters) and two characters starting with zh (both traditional Chinese and simplified Chinese ). The size is less than 1 MB.
Step 3: FCKeditor. net folder operation, add the new control in VS.net 2005, bin \ Release \ FredCK. FCKeditorV2.dll. Or directly reference it to the bin folder of your website.
Step 3: (do not perform this step when downloading my package) perform the FCKeditor operation and find fckeditor in the root directory. js. use NotePad to change the value of _ FileBrowserLanguage and _ QuickUploadLanguage to aspx.
Step 4: In web. config
<Add key = "FCKeditor: BasePath" value = "~ /FCKeditor "/>
<Add key = "FCKeditor: UserFilesPath" value = "/testText/UpLoad"/>
// Set the File Upload path. So far, Drag FCKEditor into aspx and set BasePath to the project root directory/FCKEditor. Example/FCDEditor/

Another note: the solution to the XML request error: Internal Server Error (500) error occurs when the file upload function is used 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 =" "%> to solve the internal Error 500. It is not a corresponding value, but a null value !!!!!!!!!! FCKConfig. LinkBrowser = true;
FCKConfig. ImageBrowser = true;
FCKConfig. flashBrowser = true; In fckconfig. js found these three sentences. These three sentences are not connected. I just concentrated them here, if this parameter is set to true, you can use fckeditor to browse file images and flash files on the server. This function is displayed by the "Browse server" button in the window that appears when you insert an image, if your editor is only used for your own use or only for background management, this function is undoubtedly very useful, because it allows you to upload files on the server intuitively. However, if your system is intended for front-end users or systems like blogs, this security risk will be huge. Therefore, we set all of them to false; the following FCKConfig. LinkBrowser = false;
FCKConfig. ImageBrowser = false;
FCKConfig. flashBrowser = false;.. net file named fckeditor.net_2.2.zip. cs file, change the filesName to the date form and add a random number, so that the file name will not be repeated. rebuild the dll and reference it in the project. hey, open-source products are good.
(Part of this article is reprinted. I will sort it out)

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.