wangEditor自定义上传配置部分的代码
editorConfig.MENU_CONF['uploadImage'] = {
// 自定义选择图片
customInsert(res, insertFn) {// JS 语法
// res 即服务端的返回结果
res ={
url:“”, // url 全路径
alt:'',// alt 图像无法显示时的替代文本非必填
href:''// href 图片如果可以跳转的地址非必填
}
insertFn(res.url, res.alt, res.href)
},
}