wasabeef / richeditor-android

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.
Apache License 2.0
6.22k stars 1.2k forks source link

After changing to compileSdkVersion 30, image not getting load in setHTML method #270

Open jasminenitin27 opened 2 years ago

jasminenitin27 commented 2 years ago

edittextContent.setHTML() method not working for image selected from Gallery.

Example: In below html, image not getting loaded. Hvhvuvyv<br><img src="content://com.android.providers.media.documents/document/image%3A12591" alt="dachshund" width="413" height="550"><br><br> <br><br>

But when same image is added through insertImage method it is showing, edittextContent.insertImage("content://com.android.providers.media.documents/document/image%3A12591", "dachshund", newWidth, newHeight);

It was working properly in compileSdkVersion 29, but in compileSdkVersion 30 not working.