$(function() {
  new ClipboardJS('.clipboard-button', {
    target: function(trigger) {
      return trigger.parentElement;
    }
  });

  html = '<a href="#" class="clipboard-button" data-clipboard-target=".code"><i class="icon-export"></i></a>';

  $('.CodeRay pre').prepend(html);
})

$(function() {
  new ClipboardJS('.clipboard-button', {
    target: function(trigger) {
      return trigger.parentElement;
    }
  });

  html = '<a href="#" onclick="return false" class="clipboard-button" data-clipboard-target=".code"><i class="icon-export"></i></a>';

  $('.CodeRay pre').prepend(html);
})

fix copy to clipboard anchor