有laravel开发过UEditor的大佬吗?

后台配置项返回格式出错,上传功能将不能正常使用! ueditor.all.js:8111


showErrorMsg @ ueditor.all.js:8111
onsuccess @ ueditor.all.js:8098
xhr.onreadystatechange @ ueditor.all.js:8237
XMLHttpRequest.send (async)
doAjax @ ueditor.all.js:8247
request @ ueditor.all.js:8391
(anonymous) @ ueditor.all.js:8088
setTimeout (async)
UE.Editor.loadServerConfig @ ueditor.all.js:8078
UE.Editor @ ueditor.all.js:6751
UE.ui.Editor @ ueditor.all.js:29333
UE.getEditor @ ueditor.all.js:29457
(anonymous) @ edit:165

这是咋回事啊?(别跟我讲改时区那个,laravel——composer install 的这个修改版里时区直接用的系统时区,没毛病)

阅读 3.1k
2 个回答

在本地开发阶段的时候需要注释掉config文件里的

'core' => [

    'route' => [
      (注释掉这里) // 'middleware' => 'auth',
    ],
    这样就能用了,但是在项目上线之前要依据自己的项目,编写对应的中间件,比如这个文本编辑器所属的视图是后端管理员的,就要走管理员的auth的中间件,如果是前端用户的就要用前端用户的中间件。

开始工作前,先去github搜索一下可能存在的包,下面是超哥的ueditor包。

overtrue/laravel-ueditor

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题