jquery.zeroclipboard icon indicating copy to clipboard operation
jquery.zeroclipboard copied to clipboard

when copying - code in one line

Open 6pm opened this issue 10 years ago • 0 comments

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(); });

6pm avatar Nov 14 '14 13:11 6pm