Hi,
I have been setting up a website that uses CKEditor and CKFinder. Both are working well, except for one issue with CKFinder.
Due to the site being a basic CMS, I have made a custom link browser, which is launched from the Link Dialog in CKEditor. On this custom link browser, one option is to browse the server for a file using a CKFinder popup. For this CKFinder popup, I have used the code in the samples folder for the popup example. When the link browser is launched from CKEditor, and the CKFinder popup is launched from the link browser, the problem appears. In this CKFinder popup, none of the buttons on the top bar (Upload, Refresh, etc) work. This means that no files can be uploaded, or the folder refreshed, which is an issue.
I have tried numerous code changes on the link browser, but none fix the issue with the buttons. I also tried just launching the link browser from a html page with only a button and text box on it, with the button opening the link browser popup. On this popup, the same CKFinder issue occurs.
However, if I browse straight to the address of the link browser (without going through the CKEditor link dialog), and launch the CKFinder popup, there is no problem with the popup, and all buttons work properly. In this case, the CKFinder popup is the only popup.
From these tests, it appears that the problem arises when a CKFinder popup is launched from another popup window. Is there anything that can be done to fix this?
If you need more examples of the files, I can provide the code.
Thanks,
Joel
I have been setting up a website that uses CKEditor and CKFinder. Both are working well, except for one issue with CKFinder.
Due to the site being a basic CMS, I have made a custom link browser, which is launched from the Link Dialog in CKEditor. On this custom link browser, one option is to browse the server for a file using a CKFinder popup. For this CKFinder popup, I have used the code in the samples folder for the popup example. When the link browser is launched from CKEditor, and the CKFinder popup is launched from the link browser, the problem appears. In this CKFinder popup, none of the buttons on the top bar (Upload, Refresh, etc) work. This means that no files can be uploaded, or the folder refreshed, which is an issue.
I have tried numerous code changes on the link browser, but none fix the issue with the buttons. I also tried just launching the link browser from a html page with only a button and text box on it, with the button opening the link browser popup. On this popup, the same CKFinder issue occurs.
However, if I browse straight to the address of the link browser (without going through the CKEditor link dialog), and launch the CKFinder popup, there is no problem with the popup, and all buttons work properly. In this case, the CKFinder popup is the only popup.
From these tests, it appears that the problem arises when a CKFinder popup is launched from another popup window. Is there anything that can be done to fix this?
If you need more examples of the files, I can provide the code.
Thanks,
Joel
Re: CKFinder popup problem
Re: CKFinder popup problem
Duplicate of viewtopic.php?f=10&t=19067
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKFinder popup problem
Hi,
I had a look at the topic that was mentioned, and my error seems to be a bit different to the one mentioned about permission errors in Internet Explorer. Before today, I had not tested the page in IE at all - Firefox, Chrome and Opera all did the problem that I have in the original post. I tried it in IE today, and it doesn't work there either, including on the test with only one popup.
I took a screenshot of the error in IE to show what I am getting, and have attached it to the post. The error is not permission denied as in the other thread, but instead:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 7 Jul 2010 13:13:33 UTC
Message: 'window.parent.CKFinder._' is null or not an object
Line: 2
Char: 1
Code: 0
URI: http://localhost/tfac/lib/tfac_browser.php
I do get the permission denied error on the CKFinder demo website, but not on my localhost testing server.
Thanks,
Joel
Attachments:
Re: CKFinder popup problem
Replace
window.parent.CKFinder._
with
window.parent.opener.CKFinder._
Re: CKFinder popup problem
Just wondering how you replace "window.parent.CKFinder._" with "window.parent.opener.CKFinder._" in the compressed/minified ckfinder.js file?
This is where it needs to change, yes?
Any help is much appreciated.
Cheers.
Re: CKFinder popup problem
Apologies for the delay. CKFinder 2.0.2 is now available. All popup issues should be gone now.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+