nnhubbard / ZSSRichTextEditor

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

Image is not dislay #130

Open peebits opened 8 years ago

peebits commented 8 years ago

Please help

ghost commented 8 years ago

+1

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.

lehom commented 8 years ago

i launch the demo, also have this problem

ghost commented 8 years ago

@lehom have a look at this and see if it helps you. https://github.com/nnhubbard/ZSSRichTextEditor/issues/134

imsrc21 commented 8 years ago

Try removing [webView stopLoading] from ZSSRichTextEditor.m (- (void)webView:(UIWebView )webView didFailLoadWithError:(NSError )error)

In my case some times images went to fail block so other images also stopped loading because of stopLoading method in failure block

ghost commented 8 years ago

@lehom I am now working on a fix for the images.

hi-as-you commented 7 years ago

Find him and comment

// element.empty();

JeromeTW commented 7 years ago

In my issue is the ATS forbid downloading image, so add following lines in Info.plist.

        <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
czboosj commented 5 years ago

+1