I've been using CKFinder with CKEditor for a while. It's terrific.
After upgrading to the latest CKFinder version I've noticed a change in it's behavior. I can't create more than one link in the editor at a time. I now have to save the page (close the editor basically) between each link that I want to add to the page.
Steps to recreate issue:
1. Type some text in CKEditor
2. Highlight the text
3. Click the Link icon
4. Click Browse Server
5. Select a file to link to the highlighted text (returns to the editor - adds the link)
6. Type some new text in the CKEditor instance
7. Highlight the new text
8. Click the Link icon
9. Click Browse Server
10. At this point it displays all the files but it won't allow me to select one of them. It's non-responsive. The URL is for the ckfinder.html page and all I can do is close it.
11. JS error: "attempt to run compile-and-go script on a cleared scope" at line 113 of ckfinder.html
12. If I save the page containing the editor and re-open it then I can add another link to the page.
My solution was to revert to the earlier version of CKFinder. All is well again.
After upgrading to the latest CKFinder version I've noticed a change in it's behavior. I can't create more than one link in the editor at a time. I now have to save the page (close the editor basically) between each link that I want to add to the page.
Steps to recreate issue:
1. Type some text in CKEditor
2. Highlight the text
3. Click the Link icon
4. Click Browse Server
5. Select a file to link to the highlighted text (returns to the editor - adds the link)
6. Type some new text in the CKEditor instance
7. Highlight the new text
8. Click the Link icon
9. Click Browse Server
10. At this point it displays all the files but it won't allow me to select one of them. It's non-responsive. The URL is for the ckfinder.html page and all I can do is close it.
11. JS error: "attempt to run compile-and-go script on a cleared scope" at line 113 of ckfinder.html
12. If I save the page containing the editor and re-open it then I can add another link to the page.
My solution was to revert to the earlier version of CKFinder. All is well again.
Re: Trouble setting links
Can you upgrade your site to the latest CKEditor and CKFinder versions and see if it helps?
If not, it would be great if you could describe your environment (browser etc.) as well as your CKEditor & CKFinder configuration (server-side version of CKFinder, integration method etc.).
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: Trouble setting links
I configured the sample on my server and it worked. Then I tried the sample code in my script file and it worked. Then I started stripping things out of my implementation, moving closer to the sample code, until I got the error.
Using
CKFinder.setupCKEditor( editor1, { basePath : '/ckfinder/' } ) ; <--- Causes issue
instead of
CKFinder.setupCKEditor( editor1, '/ckfinder/' ) ; <--- Works
reveals the issue.
Using the object as the second parameter for setupCKEditor, when I then try to select a file for the second link on the page I get a JS error; "attempt to run compile-and-go script on a cleared scope".
I took it full circle and tried using { basePath : '/ckfinder/' } in the demo and it has the same problem.
Hope this helps...
MW