|
Rank: Advanced Member Groups: Member
Joined: 7/21/2014 Posts: 130
|
Hi,
I try to Add an item "Copy image" (like in Chrome) in the contetual menu but I don't found how to do that.
Any help would be apprectiate.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
The browser engine does not have built-in support for that. What you can do is to handle BeforeContextMenu event and then get the image Url through e.SourceUrl property. You can then download that Url directly, load the result image and then copy it to clipboard.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 1/14/2016 Posts: 28
|
eo_support wrote:Hi,
The browser engine does not have built-in support for that. What you can do is to handle BeforeContextMenu event and then get the image Url through e.SourceUrl property. You can then download that Url directly, load the result image and then copy it to clipboard.
Thanks! but every time we visit the same url get different img may be..
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, One way to do it is to use a canvas to copy the image: http://stackoverflow.com/questions/934012/get-image-data-in-javascriptThis way you will be able to get the image data encoded as data Url. You can then decode it to get the image data. Thanks!
|
|