Format:
Recent snippets matching tags of Text Selection
function copyToClipboard(e) { $('#CodeDisplay').editable(); $('#_contenteditor') .focus() .select() .keydown(function(e) { // capture Ctl-C, Ctl-X, ESC to remove editable if (e.which == 99 || e.which == 120 || e.which == 27) { // have to delay so text doesn't go away before copy operation setTimeout( function() { $("#CodeDisplay").editable("cleanup") },500);
446 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
