-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display an image in the RichEditor with an Intent #289
Comments
Hello,
Don't forget to format the file type, in the example I use a jpg format, but you could use another format like a png format. |
This was referenced Apr 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I can't choose an image in my local storage, display the image in my RichEditor and stock the image in my database (I stock my html in my database) in same time.
I work with android 11 API 30.
My AndroidManifest.xml containt this lines :
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
If I use this line :
instanceFragment.getRichEditor().insertImage("https://raw.githubusercontent.com/wasabeef/art/master/chip.jpg", "image", 300);
The image is display in the RichEditor and I can stock in my database but I have don't choose my image in my local storage.
If I use this line :
instanceFragment.getRichEditor().insertImage("File:https://" + destination.getPath(), "image", 300);
The image isn't display in the RichEditor (the alt is display) but I can stock in my database and I have choose my image in my local storage.
If I use this line :
instanceFragment.getRichEditor().insertImage(url, "image", 300);
The image is display in the RichEditor and I have choose my image in my local storage but I can't stock in my database (because this is a temp url).
This is my code :
RichEditor.txt
Can you help me please ?
Thank in advance.
The text was updated successfully, but these errors were encountered: