简体   繁体   English

CamanJS在CKFinder中不起作用(卡在加载图像中)

[英]CamanJS not working in CKFinder (stucked in loading image)

We are integrating CKFinder with the CKEditor installation in PeopleSoft. 我们正在将CKFinder与PeopleSoft中的CKEditor安装集成在一起。 We created our own connector in Peoplesoft and almost everything is now working except editing image. 我们在Peoplesoft中创建了自己的连接器,除编辑图像外,几乎所有功能都可以正常工作。 It is stuck in the loading image dialog. 它停留在加载图像对话框中。 We already implemented ImageInfo and the response is successfully received. 我们已经实现了ImageInfo,并且成功接收到响应。 In my observation, the following are the requests made by the browser. 在我看来,以下是浏览器发出的请求。

  1. caman.js [GET] caman.js [获取]
  2. ImageInfo Command Request [GET] ImageInfo命令请求[GET]
  3. (current URL)?camanproxyURL=(CKFinder Thumbnail Request URL) [GET] (当前URL)?camanproxyURL =(CKFinder缩略图请求URL)[GET]
  4. (current URL)?camanproxyURL=(CKFinder ImagePreview Request URL) [GET] (当前URL)?camanproxyURL =(CKFinder ImagePreview请求URL)[GET]

I tried this in CKFinder demo but I don't see # 3 and #4 and the Thumbnail and ImagePreview were directly requested. 我在CKFinder演示中尝试了此操作,但没有看到#3和#4以及直接请求Thumbnail和ImagePreview的信息。 I think the problem here is in #3 and #4, the URL used is the current URL which is .../ckeditor/ckfinder/ckfinder.html. 我认为这里的问题出在#3和#4中,使用的URL是当前URL,即... / 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. CKFinder位于我们的CKEditor目录中。

We're using custom CamanJS with some improvements. 我们使用自定义的CamanJS进行了一些改进。 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). 该修复程序更改了一个用于判断域是本地还是远程的正则表达式(如果域URL失败此正则表达式,则使用代理机制)。

Could you verify that a domain URL that you are using for development passes this regex: 您可以验证用于开发的域URL是否通过此正则表达式:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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