Ckeditor3.6.1 + ckfinder2.0.2 combined to create a "handsome" editor for. net

Source: Internet
Author: User

For the original article, see Zeng xiangzhan's blog and make some details and revisions.

1. Decompress ckeditor, open _ samples, and copy the ckeditor folder to the root object of the project.

Directory

2. Decompress ckfinder and copy the ckfinder folder to the root directory of the project,

_ Source, help folder deleted (Note: useless)

3. Add ckfinder. dll and ckeditor. net. dll references.

4. Add the ckeditorcontrol tool to the toolbox.

5. Drag the ckeditorcontrol tool to the aps.net page and add it to the background code of the page.

Using ckfinder reference. Write the following code:
Protected void page_load (Object sender, eventargs E)
{
Ckfinder. filebrowser _ filebobrowser = new filebrowser ();
_ Fileboeditor. setupckeditor (this. ckeditorcontrol1 );

// Ckfinder can be used in the ckeditor control.
// _ Filebow.basepath = "/ckfinder /";
}

6. modify the content of the ckfinder/config. ascx file:
Public override bool checkauthentication ()
{
// Return false; modify the value here.
// Return httpcontext. Current. User. Identity. isauthenticated; more secure
Return true;
}

Setconfig ():

Baseurl = "~ /Ckfinder/userfiles/"; // set the File Uploaded by the client.

Which folder is stored on the server. For example, baseurl = "~ /Uploadfiles /";

 

7. Use ckeditorcontrol1.text to get the editor content

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.