nnhubbard / ZSSRichTextEditor

A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view
MIT License
3.78k stars 584 forks source link

Can't insert more than one image #134

Closed ghost closed 8 years ago

ghost commented 8 years ago

I have an issue with images not displaying, adding the first image is fine but then trying to add any more images just goes through the motions without displaying anything. Also updating images doesn't work.

xingze0308 commented 8 years ago

the method

if (!self.imageBase64String) {
    [self insertImageBase64String:imageBase64String alt:self.selectedImageAlt];
} else {
    [self updateImageBase64String:imageBase64String alt:self.selectedImageAlt];

}

self.imageBase64String = imageBase64String;

Insert pictures after the first time self.imageBase64String The assigned value The second will go [self updateImageBase64String:imageBase64String alt:self.selectedImageAlt]

Remove the judgment is ok

ghost commented 8 years ago

I noticed that not long after I posted the issue and forgot to update the issue. Thank you for the comment though.

JeromeTW commented 6 years ago

Hi, @xingze0308 , can you explain more about the solution, thank you. 謝謝。