FCKeditor 2.3 Setting of File upload path in asp.net

Source: Internet
Author: User
Tags add contains file upload modify net string unpack root directory
Extract the first file to the Web root directory, the default folder name is: FCKeditor; then unpack the second package, which contains the source code, and if you want to develop it yourself, you can double-click FredCK.FCKeditorV2.csproj file, open vs.net to modify, the language used is C #; Do not want to change the words, directly to the bin\ Release the FredCK.FCKeditorV2.DLL file below the bin of the Web directory

First, preparatory work

First download the latest version of FCKeditor V2.3.
Download Address:http://prdownloads.sourceforge.net/fckeditor/FCKeditor_2.3.zip?download
This package does not contain the DLL controls that asp.net to use, so you also need to download another compression package.
Download Address:http://sourceforge.net/project/showfiles.php?group_id=75348&package_id=137125
Extract the first file to the Web root directory, the default folder name is: FCKeditor; then unpack the second package, which contains the source code, and if you want to develop it yourself, you can double-click FredCK.FCKeditorV2.csproj file, open vs.net to modify, the language used is C #; Do not want to change the words, directly to the bin\ Release the following FredCK.FCKeditorV2.DLL file to the Web directory under the bin, and add a reference to the project, and then on the left side of the toolbar to add items, select FredCK.FCKeditorV2.DLL, you can see the toolbar after the one more FCKeditor icon, to use the FCKeditor place as long as you drag the icon to the page relative to the location on the OK, note that set the path of the basepath: "/fckeditor/"

Ii. related Modifications

Because the website backstage and the forum all used this editor, the website visit is the http://website/, the forum visit is the http://website/bbs, the forum I is uses the Xmlchina forum, the function is relatively simple, the modification is also convenient, but it post the time did not do the picture to upload, So you can change the editor (this is easier than changing the code).
FCKeditor's. NET default upload path is/userfiles/, if both sides of the forum and the site upload files are mixed together. Google on the Internet half, only to find the ASP environment in the upload path changes. Using. Net-like browsers, you find that FredCK.FCKeditorV2.FileWorkerBase.UserFilesPath can be set. The main I just learn. NET rookie, the level is not high, tried several back did not set success. Had to see Fredck.fckeditorv2 's. NET source code (is the second download above), open to find FileWorkerBase.cs, find 26 rows View Plaincopy to Clipboardprint?
Private Const string Default_user_files_path = "/userfiles/";

Private Const string Default_user_files_path = "/userfiles/"; /userfiles/change to the path you want is OK. Then compile, put the DLL file in your target project bin directory, do the relevant references and other work to complete the path settings.



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.