Skip to content
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

How to get Editor to show an image from the phone's photo gallery (temporarily before upload) #94

Open
bumpingChris opened this issue Jul 28, 2022 · 1 comment

Comments

@bumpingChris
Copy link

I would like to enable a user to select an image from the phone's photo gallery and see it on the editor BEFORE uploading to an online store.

The selected image would have a local path like

localPathImage = '/Users/XXXXXX/Library/Developer/CoreSimulator/Devices/6CFB4732-DEB7-41C4-B285-D83DCDCD&&/data/Containers/Data/Application/CC34234CD-34A4-42BD-86F0-2C197F0BBEDED4/tmp/react-native-image-crop-picker/BEFEBD43-C518-4077-9D94-FEBFB2D3A7CB.jpg'

I would like to change this path to a http:// or https:// url only after the user decides to post the content.

However performing:
this._editor.current?.insertEmbed(range, 'image', localPathImage); does not render the image on the editor.

Any suggestions on how to enable this?

@pksingh21
Copy link

Hey did you have find any solution to this i am facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants