Baidu Editor multi-image batch Upload order confusion problem Ueditor

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.