ng-clip icon indicating copy to clipboard operation
ng-clip copied to clipboard

Make it work without Flash

Open gregra81 opened this issue 10 years ago • 12 comments

Chrome is dropping Flash support, this will basically make this wonderful directive unusable.

gregra81 avatar Sep 01 '15 07:09 gregra81

It's a very good idea!

I'll try to find some time to work on this, but I would love to merge a pull request that tackles this if someone has the time.

asafdav avatar Sep 02 '15 19:09 asafdav

Hi @gregra81, I started to work on a new version that doesn't require flash, it would be very helpful if you could check this branch clipboard-js and let me know if it works for you.

Thanks!

asafdav avatar Oct 06 '15 07:10 asafdav

OK, @asafdav, I'll take a look as soon as I have time. BTW, I thought that copying from your browser to the computer via JS poses a security threat and browsers don't allow it. Am I wrong?

gregra81 avatar Oct 20 '15 05:10 gregra81

@asafdav, I gave it a quick check. First of all, thank you for your time in developing that. For now, it works well on Chrome. Is there a plan to push it to other browsers? Is there a plan releasing it as a stable version?

gregra81 avatar Nov 09 '15 13:11 gregra81

Hi @gregra81, yes I hope to release it soon. I'll have to implement the missing features. thanks for taking the time and help my out.

asafdav avatar Dec 17 '15 03:12 asafdav

Do it please if you still support this repo

maslowivan avatar Feb 18 '16 14:02 maslowivan

Or do some another bower package

maslowivan avatar Feb 18 '16 14:02 maslowivan

https://github.com/asafdav/ng-clip/issues/88

niemyjski avatar Apr 13 '16 16:04 niemyjski

Yeah I think it would be great to use the execAction api and then if that doesn't work we make a request to load the flash version and try it..

niemyjski avatar Apr 13 '16 16:04 niemyjski

@asafdav I see your branch by why even have the dependency on clipboard js.. It's super simple to just call execAction('copy') and wrap that in a try block.

niemyjski avatar Apr 13 '16 16:04 niemyjski

@niemyjski - I suggest you fork the repo, add this and make a pull request. What do you think?

gregra81 avatar Apr 17 '16 08:04 gregra81

I already switched to angular-clipboard which uses this api

niemyjski avatar Apr 17 '16 15:04 niemyjski