打开文件ueditor\dialogs\image\image.js
,找到723行找到如下代码,添加标红的代码:
监听
uploadSuccess
事件。多图片上传时,每个上传成功后会触发uploadSuccess
。
<script type="text/javascript">
var ue = UE.getEditor('container');
ue.ready(function () {
ue.on("uploadSuccess", function (name,file, ret) {
console.log("uploadSuccessWjb",name, file, ret);
});
});
</script>
网友评论