Fckeditor_2.6 detailed usage of the editing component in ASP. net2.0

Source: Internet
Author: User

First, go to the official website:
1. Download FCKeditor 2.6 under the main program
2. Use the following example. Net example to add the example FCKeditor. net_2.5.

After the main program is captured, it will be released to the website.

Then, we can open the. Net protocol case next time and use the DLL program that has been compiled successfully.

Then, upload it to the bin information.

Then, use the selection tool in the toolbar to insert the control.

EnableFckconfig. jsPull down the case and find

    1. VaR _ filebrowserlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py
    2. VaR _ quickuploadlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ filebrowserlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | py

Change it

    1. VaR _ filebrowserlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py
    2. VaR _ quickuploadlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ filebrowserlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py
VaR _ quickuploadlanguage = 'aspx '; // ASP | aspx | CFM | lasso | Perl | PHP | py

▲Open a plane and Drag FCKeditor out.BasepathChange~ /FCKeditor/You can use it with just one click.

    1. <Fckeditorv2: FCKeditor ID="Fckeditor1" Runat="Server" Basepath="~ /FCKeditor /">
    2. </Fckeditorv2: FCKeditor>

Note: Use ~ /The reason for FCKeditor is that the demo puts it under the project owner. If you have any changes, modify them on your own.

★Attention: as long as you run out, you will find that all functions are normal, which is part of the [upper limit ].
The modification method is very simple. Find the following cases (Please modify the color part)

C: \ *** \ website1 \ FCKeditor \ editor \ filemanager \ connectors \ aspx \ config. ascx

FindUserfilesabsolutepath = "";Change it to the desired category.
(In this example, newfolder1 in the root website)

Userfilespath = "~ /Newfolder1

Then modify the value of false in the checkauthentication method in config. ascx to true.

Private bool checkauthentication ()

{

// Warning: do not simply return "true". By doing so, you are allowing

// "Anyone" to upload and list the files in your server. You must implement

// Some kind of session validation here. Even something very simple...

//

// Return (session ["isauthorized"]! = NULL & (bool) session ["isauthorized"] = true );

//

//... Where session ["isauthorized"] is set to "true" as soon as

// User logs in your system.

Return true;

}

 
 

If you need examples, please leave an email

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.