Multi-file upload inconsistent Ueditor-- selection and display of order

Baidu Editor UEditor1.4.3 later multi-map upload pictures disorder repair order

1, in ueditor / dialogs / image / image.js file:

The original _this.imageList.push (json); modify _this.imageList [$ file.index ()] = json;

2, ueditor/dialogs/attachment/attachment.js

The original _this.fileList.push (json); modify _this.fileList [$ file.index ()] = json;

Fix the official website:

1, in ueditor / dialogs / image / image.js file:

 

 

 

 

Or search "var $ file = $ ( '#' + file.id);" in ueditor / dialogs / image / image.js file, add the following in which the following code:

// search for
There are $ file = $ ( ' # ' + file.id);
 
 

// added
uploader.stop();
setTimeout(function () { uploader.upload(); }, 1000);
 

 

Here 1000 is the 1-second pause, can be set to 500 (half a second), 400, 700, etc.

 

 

Guess you like

Origin www.cnblogs.com/gjh99/p/11925134.html