PyroCMS CKEditor:Uncaught SyntaxError:无效的正则表达式:missing /

时间:2017-01-22 21:07:01

标签: javascript codeigniter ckeditor pyrocms

我正在使用基于Codeigniter框架的PyroCMS 2.x.当我在admin后端(/ admin / files)中打开文件编辑器时,它无法正常工作,但会将我重定向到起始页面。文件编辑器基于CKEditor。我之前遇到了同样的问题并修复了它,但现在它再次发生了,我再也找不到解决方案了。

我也在使用Cloudflare,我关闭了测试以及在PyroCMS中关闭了缓存。

在Chrome开发者工具中,它显示以下问题:

Console Error in Chrome Developer Tools

该错误与文件/assets/cache/4e1ee6d64a845f2f82e18c6ed3f1423e.js有关:

this.complete=function(){loaded+=1;if(loaded===list.length){callBack(list);loaded=0;list=[];}};this.push=function(item){list.push(item);};this.getList=function(){return list;};},SequenceHandler=function(){var sequence=[];this.push=function(callBack){sequence.push(callBack);if(sequence.length===1){callBack();}};this.next=function(){sequence.shift();if(sequence.length){sequence[0]();}};};FileUpload=function(container){var fileUpload=this,uploadForm,fileInput,settings={namespace:defaultNamespace,uploadFormFilter:function(index){return true;},fileInputFilter:function(index){return true;},cssClass:defaultNamespace,dragDropSupport:true,dropZone:container,url:function(form){return form.attr('action');},method:function(form){return form.attr('method');},fieldName:function(input){return input.attr('name');},formData:function(form){return form.serializeArray();},requestHeaders:null,multipart:true,multiFileRequest:false,withCredentials:false,forceIframeUpload:false,sequentialUploads:false,maxChunkSize:null,maxFileReaderSize:50000000,replaceFileInput:true},documentListeners={},dropZoneListeners={},protocolRegExp=/^http(s)?:\/\

我不认为某些代码是错误的,因为它之前的工作已经存在多年了,但还有另一个原因 - 可能与Cloudflare,缓存,php版本等有关。

有没有人知道什么是解决方案?

谢谢,

菲利普

0 个答案:

没有答案