1、打开public下ueditor下的ueditor.config.js配置
image.png
2、打开php/config.json文件把里面内容复制粘贴到ueditor.config.js里面
image.png
3、查看下你的百度编辑器是引用的ueditor.all.min.js还是ueditor.all.js文件,以下以ueditor.all.js文件为主
a、解决图片上传宽度超出编辑器的问题(搜索定位到'body{margin:8px;font-family:sans-serif;font-size:16px;}')在此添加以下代码
image.png
b、网络请求接口判断(定位到getActionUrl: function(action)方法)
image.png
c、处理ajax数据请求(定位到/* 创建Ajax并提交 */
var xhr = new XMLHttpRequest()方法)
image.png