Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit 7733622

Browse files
committed
Use the correct identifier for media span container.
1 parent bbdd5cd commit 7733622

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/ZSSRichTextEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ ZSSEditor.insertLocalImage = function(imageNodeIdentifier, localImageUrl) {
813813
var progressIdentifier = this.getImageProgressIdentifier(imageNodeIdentifier);
814814

815815
var span = document.createElement("span");
816-
span.id = imageNodeIdentifier;
816+
span.id = this.getImageContainerIdentifier(imageNodeIdentifier);
817817
span.className = "img_container";
818818

819819
var progress = document.createElement("progress");
@@ -1023,7 +1023,7 @@ ZSSEditor.markImageUploadFailed = function(imageNodeIdentifier, message) {
10231023
}
10241024

10251025
imageNode.addClass('failed');
1026-
1026+
alert(message);
10271027
var imageContainerNode = this.getImageContainerNodeWithIdentifier(imageNodeIdentifier);
10281028
if(imageContainerNode.length != 0){
10291029
imageContainerNode.attr("data-failed", message);

0 commit comments

Comments
 (0)