Ckfinder is also one of the CK products. It has two functions: uploading files and browsing files. In general, it is integrated in ckeditor or FCKeditor, so that you can directly upload a hyperlink or image in the editor, or directly insert it into the editor through browsing. Ckfinder provides permission interfaces to prevent unauthorized users from uploading files. Ckfinder charges fees. If you do not buy a license, it is used in demo mode and cannot be used for commercial purposes.
Ckfinder provides programs in ASP, ASP. NET, ColdFusion, and PHP environments.
Ckfinder Website: http://ckfinder.com/
Ckfinder official document: http://docs.cksource.com/CKFinder
Install ckfinder (using ASP as an example)
- Go to http://ckfinder.com/download the latest ckfinder version;
- Put the entire folder on the server;
- For thumbnails, the server must support ASP. NET 1.1/2.0, aspjpet, aspimage 2, or aspthumb. (For Windows servers, ASP. NET is generally supported. Why not use ASP. NET directly)
- Create a folder (userfiles under ckfinder by default) for ckfinder to upload files and set nfts permissions;
- Open config. ASP, configure the authentication code in checkauthentication () (to test, you can directly change the return value to true so that it has always the permission) and configure the license (if any), baseurl, and basedir. All of these are described in remarks, which is better suited.
Integrated into ckeditor/FCKeditor
Assume that the Server File structure is:
- /Index.html
- /Ckeditor/
- /Ckfinder/
The code for/index.html is:
<SCRIPT type = "text/JavaScript" src = "/ckeditor. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript" src = "/ckfinder. js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
<! --
VaR editor = ckeditor. Replace ("content ");
Ckfinder. setupckeditor (editor );
// -->
</SCRIPT>
Now, the editor has integrated ckfinder. Note: It is best to download the original ckeditor from the official website. Do not use the lite version.
For more configuration details, refer to ckeditor.html#fckeditor.html under/ckfinder/_ samples/JS/In addition to the ckfinder official document mentioned above.
Related Questions
Files cannot be viewed due to security reasons. Contact the system administrator and check the ckfinder configuration file.
In config. asp, The checkauthentication function returns false. In testing, you can change checkauthentication to true.
Unable to find an image manipulation component
No controls for image operations.
- If you do not use the thumbnail function, set thumbnails. Add "enabled" in config. asp to false.
- To use the thumbnail feature: you can install ASP. NET 1.1/2.0, aspjpet, aspimage 2, or aspthumb. For ASP. NET:
- If any error occurs, modify the Web according to the instructions. config and config. ckfindertemppath in ASP (note that it ends with "/" and. in config, replace "/" with "/");
- If there are still errors, you can directly access http ://... /ckfinder/CORE/connector/asp/loopback. aspx to see if ASP can be run. net, I encountered an error. for the reason of the. NET version, see. net Framework 4.0 cannot run ASP.. Net program. NOTE: If "403-Forbidden" is displayed, ASP. NET is running.