解决办法(在前端将返回的data数组进行遍历,然后逐个insertimg):
editor.customConfig.uploadImgHooks = {
customInsert: function (insertImg, result, editor) {
var urls = new Array()
urls=result.data;//获取后台返回的url数组,然后遍历数组内容分别插入文档中
for (x in urls){
insertImg(urls[x]);
}
}
};
————————————————
版权声明:本文为CSDN博主「helixsky」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/helixsky/article/details/89064932