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

when copying - code in one line #4

Open
6pm opened this issue Nov 14, 2014 · 0 comments
Open

when copying - code in one line #4

6pm opened this issue Nov 14, 2014 · 0 comments

Comments

@6pm
Copy link

6pm commented Nov 14, 2014

Hello. My site - http://template.promo-gear.itembridge.com/docs/
Plugin works, but the code without hyphens line, all in one line. How do I fix this?

My code:
// initialize zeroclipboard plugin

$('.copy-btn').on('copy', function(e) {
e.clipboardData.clearData();
e.clipboardData.setData("text/plain", $(this).closest('div').find('.copied').text());
showAlertMsg();
e.preventDefault();
});

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

1 participant