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