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
Re: CKFinder popup issue
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CKFinder popup issue
Re: CKFinder popup issue
You said that it is happening in Chrome and IE. Do you see any errors messages in console tabs of those browsers development tools?
Re: CKFinder popup issue
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;
}
Re: CKFinder popup issue
Uncaught TypeError: Cannot call method 'bD' of undefined
Re: CKFinder popup issue
@amitpatel - as I have written before. I have tried your code but didn't get any errors. My question is are you getting any errors in browser logs? Anything I could grab on to?
@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?
Re: CKFinder popup issue
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.
Re: CKFinder popup issue
I actually meant ckfinder.js - sorry
@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?
Re: CKFinder popup issue
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?
Re: CKFinder popup issue
Re: CKFinder popup issue
-Amit
Re: CKFinder popup issue
Re: CKFinder popup issue
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+
Re: CKFinder popup issue
The popup issue is only happening in my project.
Re: CKFinder popup issue
Re: CKFinder popup issue
Re: CKFinder popup issue
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
Re: CKFinder popup issue
Re: CKFinder popup issue
Hello,
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.
Re: CKFinder popup issue
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder popup issue
Thanks wiktor! Please, reply to this post when you have a patch or something. I have subscribed and I will get notified by email when it's fixed You guys are doing an extraordinary job!
Re: CKFinder popup issue
Ops, I wrote too fast. I was actually checking this issue in Chrome 18.0.1025.33 beta-m. We have filled a bug report for Chrome (Using JS's resizeTo hides a popup, feel free to vote for it).
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+
Re: CKFinder popup issue
Re: CKFinder popup issue
Hi there
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
Re: CKFinder popup issue
CKFinder 2.2.1 is now available: viewtopic.php?f=8&t=25156
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CKFinder popup issue
As Anna wrote we have just released CKFinder 2.2.1 where the popup issue is gone in Chrome 18, when CKFinder.popup() is used to launch CKFinder.
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+
Re: CKFinder popup issue
Re: CKFinder popup issue
Thanks a lot for quick update, good service
Re: CKFinder popup issue
Would someone be filling to post the fixed .js file somewhere I can download it? I'm not able to get the hang of the svn thing at all That's assuming it's just the one file that's been changed?
Re: CKFinder popup issue
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+