瀏覽代碼

Fixed clipboad button data target prop name

Mikael Säker 7 年之前
父節點
當前提交
389a6ff7c1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gulpfile.js

+ 1 - 1
gulpfile.js

@@ -169,7 +169,7 @@ md.renderer.rules.fence = function (tokens, idx, options, env, self) {
   }
 
   var id = 'codesnippet_' + idx;
-  var copy = '<button class="copy-to-clipboard" data-target="#' + id + '"><span class="icon-clipboard"></span></button>';
+  var copy = '<button class="copy-to-clipboard" data-clipboard-target="#' + id + '"><span class="icon-clipboard"></span></button>';
 
   // If language exists, inject class gently, without modifying original token.
   // May be, one day we will add .clone() for token and simplify this part, but