When i click a link first time ckFinder is getting open in the popup. but after closing the popup if i click the link again then second time it is opening popup but it is just empty popup(don't see ckFinder in it.). This behavior in happening in the IE and Chrome browsers it is working fine in the Firefox though.
Here is my the sample code to open ckFinder in the popup.
$('a.link').click(function(e) {
var finder = new CKFinder();
finder.popup();
return false;
});
Please advise.
Thanks,
Amit
Here is my the sample code to open ckFinder in the popup.
$('a.link').click(function(e) {
var finder = new CKFinder();
finder.popup();
return false;
});
Please advise.
Thanks,
Amit

Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
You said that it is happening in Chrome and IE. Do you see any errors messages in console tabs of those browsers development tools?
I copied the code below from the sample popup.html of ckfinder and the button calls the browseServer().
Any help would be appreciated. Thanks.
function BrowseServer()
{
var finder = new CKFinder();
finder.basePath = '../../'; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = SetFileField;
finder.popup();
}
function SetFileField( fileUrl )
{
document.getElementById( 'xFilePath' ).value = fileUrl;
}
Uncaught TypeError: Cannot call method 'bD' of undefined
@icesnake - First, please try downloading and using the latest version of CKFinder (http://ckfinder.com/download). Second - you say that you have copied code from popup.html site. This code works well there, which shows that you have made something wrong when writing your code.
Error - Uncaught TypeError: Cannot call method 'bD' of undefined - may indicate that you haven't perhaps declared all scripts on your page or perhaps mixed up the paths. Could I ask you to double-check it?
Like amitpatel, I'm having the issue on chrome 14 and IE 8 but working fine with firefox. Haven't tried using the ckfinder 2.1 though. Will try it and post the result. Thanks.
@icesnake - could you tell me how is CKEditor used on your page? Perhaps it is loaded with JQuery/Ajax or something like that? The more information you provide the better.
Perhaps you could provide reduced code that is causing this error?
public override 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 as...
//
// return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs on your system.
return true;
}
....
LicenseName = "XXXXXXXXXXXXXXXXXX";
LicenseKey = "XXXX-XXXX-XXXX-XXXX";
// The base URL used to reach files in CKFinder through the browser.
//BaseUrl = "/ckfinder/userfiles/";
BaseUrl = "/engine/";
// The phisical directory in the server where the file will end up. If
// blank, CKFinder attempts to resolve BaseUrl.
BaseDir = "";
....
type = ResourceType.Add("PSMC Organization Logos");
type.Url = BaseUrl + "imgs/";
type.Dir = BaseDir == "" ? "" : BaseDir + "imgs/";
type.MaxSize = 0;
type.AllowedExtensions = new string[] { "bmp", "gif", "jpeg", "jpg", "png" };
type.DeniedExtensions = new string[] { };
-------------------------------------------
What are the other configuration that I need to do to make the samples work? I'm having a hard time following the documentation, is there a faq section besides the forums/discussions?
-Amit
Alternatively, could you attach a simplified HTML sample where this issue can be reproduced?
Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
The popup issue is only happening in my project.
im having this same issue also in Version 2.1. also in IE 8 / Chrome. Ckfinder opens the first time but the second time only a grey screen.
im following the js example from the demo (my site is also using drupal) but with a link, not a form button
<a href="javascript:void(0)" onclick="var finder = new CKFinder();
finder.basePath = Drupal.settings.basePath + Drupal.settings.ckfinderPath + '/';
finder.popup();return false;">('browse for file')</a>
i noticed in the Chrome Dev tools an error
/sites/all/modules/ckeditor/ckfinder/ckfinder.js?ly9ici:6
Uncaught TypeError: Cannot read property 'plugins' of undefined
I am having the same problem. Popup version works fine with Firefox but fails to load the popup in Chrome. You can test it yourself here:
http://www.autorally.ro/ckfinder/_samples/popup.html
You will notice the popup it opens and very fast is minimize in the windows applications bar and you cannot access it. Still, if you are using Windows 7 you can put the mouse over the Chrome icon in the application bar, let the thumbs opens and then on the chrome thumbnail with the popup right click and choose "Show as tab...". This will open the ckfinder in a new tab and seems to be ok, even if the URL will show you "about:blank" text. I don't know if you actually understood anything, you better try it yourself using the link above.
Thank you.
Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
We have tried to reproduce issues reported for IE8 and everything worked perfectly. Can anyone provide more details (e.g. send me a PM with a link to a website where it can be reproduced)?
Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
We experience the same problem now, the problem is also now on your demo http://ckeditor.com/demo, try doubleclick the demo picture in the write area and click browse. I am using Chrome version 18.0.1025.142 m
Thanks
Reino
Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
Note: in CKEditor the "Browse Server" button will not work even with CKFinder 2.2.1, because CKEditor contains the same piece of code that fails in Chrome 18. We will release soon CKEditor 3.6.3 where the issue will be gone (should happen next week).
Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+