user1173805
user1173805

Reputation: 79

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.

Upvotes: 0

Views: 184

Answers (1)

jodator
jodator

Reputation: 2475

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|\.)+))/

Upvotes: 0

Related Questions