Running CKFinder 2.4.2 on classic ASP
The "2.3 released" documentation states: The “View” command is now executed on double click if no config.selectActionFunction is defined and CKFinder is not running inside CKEditor.
When I double click on an image in standalone CKFinder that was started with javascript (see below), CKFinder just goes away. I am not defining selectActionFunction anywhere
<script type=""text/javascript"" src=""../includes/ckfinder/ckfinder.js""></script>
<script type=""text/javascript"">
{ | |
var finder = new CKFinder(); | |
finder.basePath = '../'; | |
finder.startupPath = "Images:/"; | |
finder.popup(); | |
} |
Any ideas on why my install does not work like the demo??
Correct approach from CKFinder Support
The correct approach to this is:
<script type=""text/javascript"" src=""../includes/ckfinder/ckfinder.js""></script>
<script type=""text/javascript"">
var finder = new CKFinder();
finder.basePath = '../'; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = function(api) {
this.connector.app.execCommand( 'ViewFile' );
return false;
};
finder.popup();
}
Answer from CKFinder support team.