Objective
Ueditor Introduction I will not say more, you can directly visit http://ueditor.baidu.com/website/index.html
Body
Problem:
Ueditor in the multi-image upload, there will be a problem with the picture book sequence confusion.
Reason:
Ueditor since the 1.4.2 version, the front-end upload Module Unified switch to Webuploader, and Webuploader is multi-threaded upload, ueditor to "uploadsuccess" processing is a successful upload, added to the array, This way, if the picture upload completion order is chaotic, the final addition of the text box in the Order of chaos.
Method:
Modify Dialogs/image/image.js
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/76/6B/wKiom1ZS2q-T0cYQAAH4C3YdSRE866.jpg "title=" 1.jpg " alt= "Wkiom1zs2q-t0cyqaah4c3ydsre866.jpg"/> for Dialogs/image/image.js, if the ln:722 line is modified in the way above, then Ln : 769 rows or so of the getinsertlist function should also be modified synchronously. Avoid this type of situation: arr = [];arr[0]=obj0;arr[2]=obj2; then try to read Arr[1] properties.
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/76/6B/wKiom1ZS21nipNIWAAHbbYUTuyA801.jpg "title=" 2.jpg " alt= "Wkiom1zs21nipniwaahbbyutuya801.jpg"/>
This article is from "Hai Dust" blog, please be sure to keep this source http://oulafen.blog.51cto.com/7830663/1716075
Baidu Editor multi-image batch Upload order confusion problem Ueditor