简体   繁体   中英

CamanJS not working in CKFinder (stucked in loading image)

We are integrating CKFinder with the CKEditor installation in PeopleSoft. We created our own connector in Peoplesoft and almost everything is now working except editing image. It is stuck in the loading image dialog. We already implemented ImageInfo and the response is successfully received. In my observation, the following are the requests made by the browser.

  1. caman.js [GET]
  2. ImageInfo Command Request [GET]
  3. (current URL)?camanproxyURL=(CKFinder Thumbnail Request URL) [GET]
  4. (current URL)?camanproxyURL=(CKFinder ImagePreview Request URL) [GET]

I tried this in CKFinder demo but I don't see # 3 and #4 and the Thumbnail and ImagePreview were directly requested. I think the problem here is in #3 and #4, the URL used is the current URL which is .../ckeditor/ckfinder/ckfinder.html. I don;t this is what supposed to happen.

How do I fix this issue? Is this something with our setup or configuration? CKFinder is inside our CKEditor directory.

We're using custom CamanJS with some improvements. One of them was this change . It was due to similar problem with domain name that contain - in it's name. The fix changed a regexp that was used to tell if domain is local or remote (if a domain URL fails this regexp the proxy mechanism is used).

Could you verify that a domain URL that you are using for development passes this regex:

/(?:(?:http|https):\/\/)((?:[\w-]+)\.(?:(?:-|\w|\.)+))/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM