Skip to content

Commit

Permalink
🐛 修复代码复制按钮不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
zkqiang committed Mar 24, 2020
1 parent c8e6476 commit d835da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/js/clipboard-use.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
copyHtml += '<button class="copy-btn" data-clipboard-snippet="">';
copyHtml += '<i class="far fa-copy"></i><span>Copy</span>';
copyHtml += '</button>';
$('pre.highlight').wrap($('<div class="code-block"></div>'));
$('pre.prettyprint').wrap($('<div class="code-block"></div>'));
$('.code-block').prepend(copyHtml);
var clipboard = new ClipboardJS('.copy-btn', {
target: function (trigger) {
Expand Down

0 comments on commit d835da7

Please sign in to comment.