官方文档:http://tinymce.ax-z.cn/general/upload-images.php
//引入axios
import axios from "axios路径";
//富文本配置
images_upload_handler: (blobInfo, success, failure) => {
var file = blobInfo.blob();
const formData = new FormData();
formData.append('file', file, file.name );
axios({
method: "post",
url:"上传地址",
data: formData,
}).then((res) => {
success("接口返回的图片地址");
}).catch((err) => {
failure("上传失败");
});
},