I'm currently working on an iOS website and I am facing a challenge in retrieving recently copied images using JavaScript.
When you press and hold your finger on an image within a website, a menu appears with options to either Save the image or Copy. By pasting the copied image into a text field later on, you can obtain the URL using:
pasteEvent.clipboardData.getData('text/uri-list');
Interestingly, when copying an image from the camera roll, Facebook app, or through selection and then attempting to paste it into the same text field or textarea, the option is not available. However, when trying to paste in the Mail application, the Paste option is available and successfully pastes the image. Does anyone have any insight on how to retrieve the URL or binary data for a copied photo on an iPad?
For more information, refer to the Apple Documentation at the following link:
To see an example of this functionality, visit: