2016-08-12 79 views
0

似乎CKFinder 3.3(对于PHP)与jQuery 3.0或3.1不兼容。每当我试着和这两个版本的加载CKFinder,我得到这两个错误,CKFinder不会加载:使用jQuery 3.x运行时发现CKFinder错误

[Error] TypeError: undefined is not an object (evaluating 'a.event.props.concat') 
    (anonymous function) (jquery.mobile.js:4:5781) 
    (anonymous function) (jquery.mobile.js:4:6334) 
    (anonymous function) (jquery.mobile.js:3:115) 
    global code (jquery.mobile.js:3:130) 
[Error] TypeError: undefined is not an object (evaluating 't.event.special.swipe.start') 
init — ckfinder.js:3373 
(anonymous function) — ckfinder.js:14863:116 
execCb — ckfinder.js:715 
check — ckfinder.js:510 
enable — ckfinder.js:589 
init — ckfinder.js:482:172 
(anonymous function) — ckfinder.js:648:99 

    check (ckfinder.js:5:21940) 
    enable (ckfinder.js:5:24481) 
    init (ckfinder.js:5:20742) 
    (anonymous function) (ckfinder.js:5:26286) 

如果我恢复到jQuery的1.12.3(没有其他变化),它工作正常。

其中一个错误发生在jQuery手机中,所以它可能是一个问题,但是,这是最新版本(1.4.5),我还没有发现任何关于jQuery mobile和jQuery 3之间不兼容的报告。我也尝试过使用jQuery迁移插件,但这并没有帮助。

我可以通过告诉CKFinder使用jQuery 1.12来处理这个问题,而它所嵌入的页面使用3.1,但是,显然不适合加载两个jQuery副本。

+0

试试jquery为它迁移。 'https:// code.jquery.com/jquery-migrate-3.0.0.js' –

+0

正如我所说的那样,我试过了,它没有帮助。 – Synchro

回答

3

这里只是说明,作为回答了门票https://github.com/ckfinder/ckfinder/issues/299#issuecomment-239440766

最新jQuery Mobile的框架1.4.5发布了10月31日2014年这是jQuery的2.2,这是没有https://github.com/jquery/jquery-mobile/issues/8381支持之前。在任何jQuery 3.x发布之前:3.0 - 2016年6月9日发布; 3.1 - 7月7日公布,2016年

由于文档站:

jQuery Mobile的1.4.x的工作与jQuery核心的版本从1.8.3到1.11.1/2.1.1。

因此,直到jQuery Mobile与jQuery 3.x本身不兼容,CKFinder也不能使用它。