Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

it not work in mac chrome #683

Open
qiuyaofan opened this issue Jul 4, 2017 · 2 comments
Open

it not work in mac chrome #683

qiuyaofan opened this issue Jul 4, 2017 · 2 comments

Comments

@qiuyaofan
Copy link

i use the demo but it failed

<button id="copy-button" data-clipboard-text="Copy Me!" title="Click to copy me.">Copy to Clipboard</button>
<script type="text/javascript">
            var client = new ZeroClipboard( document.getElementById("copy-button") );

            client.on( "ready", function( readyEvent ) {
              // alert( "ZeroClipboard SWF is ready!" );
              client.on( "copy", function( event ) {
                console.info(44444)
              });
              client.on( "aftercopy", function( event ) {
                // `this` === `client`
                // `event.target` === the element that was clicked
                event.target.style.display = "none";
                alert("Copied text to clipboard: " + event.data["text/plain"] );
              } );
            } );
        </script>

version ios 10.12.5

@maikelmclauflin
Copy link

This also fails for me. it seems that the line, which probably used to succeed no longer is because chrome has changed it's flash implementation.

ZeroClipboard.isFlashUnusable()

this would be really great if this could be updated with another condition that would use

document.execCommand

@meglio
Copy link

meglio commented Dec 4, 2017

Any updates on this? Looks like it hasn't been fixed in 2.3

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

No branches or pull requests

3 participants