Merge pull request #326 from budziq/fix_clipboard
copying to clipboard no longer copies the compilation results from "play"
This commit is contained in:
commit
19692c76df
|
@ -201,7 +201,7 @@ $( document ).ready(function() {
|
|||
var clipboardSnippets = new Clipboard('.clip-button', {
|
||||
text: function(trigger) {
|
||||
hideTooltip(trigger);
|
||||
return trigger.parentElement.parentElement.textContent;
|
||||
return $(trigger).parents(".playpen").find("code.language-rust.hljs")[0].textContent;
|
||||
}
|
||||
});
|
||||
clipboardSnippets.on('success', function(e) {
|
||||
|
|
Loading…
Reference in New Issue