i am trying to disable image drag on my website, like when i go to preview or live part of my website you can drag images from website into photoshop or whatever, i want to prevent this from happening to protect my logo or other images. please anyone?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
![feature fixed.png](https://static.wixstatic.com/media/3bfa8a_f845e1016b8a49758acdd6edd6610c3b~mv2.png/v1/crop/x_0,y_2,w_852,h_508/fill/w_104,h_62,al_c,q_85,usm_0.66_1.00_0.01,blur_3,enc_auto/feature%20fixed.png)
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
Hi again,
Go to image uploads, Choose a picture, Hover the plus sign and open the image in a new tab.
In the new tab you will have the url to the image.
Good luck!
Roi
Hello Roi,
How would i get the url src of the image on my site to be able to do this?
Hi Austin,
It's not possible to disable drag event with the Image element.
However, You can create an HTML component with img element and add draggable="false" attribute.
It works.
Here is a sample:
<!DOCTYPE html> <html lang=en> <meta content="width=device-width"> </head> <body> <div> <img src="https://i.ytimg.com/vi/SfLV8hD7zX4/maxresdefault.jpg" draggable="false"/> </div> </body> </html>
Good luck!
Roi
maybe add the onmousedown and return false, havent tried it