Typo fix: clipboard not clipdord
This commit is contained in:
parent
3688bb0f53
commit
f2092071ba
|
@ -6033,7 +6033,7 @@ to copy the content of the block.
|
|||
"<details id='%s' class='code'%s><summary%s>%s</summary>
|
||||
<div class='gutter'>
|
||||
<a href='#%s'>#</a>
|
||||
<button title='Copy to clipboard' onclick='copyPreToClipdord(this)'>⎘</button>\
|
||||
<button title='Copy to clipboard' onclick='copyPreToClipbord(this)'>⎘</button>\
|
||||
</div>
|
||||
%s
|
||||
</details>"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function copyPreToClipdord(btn) {
|
||||
function copyPreToClipbord(btn) {
|
||||
const pre = btn.parentElement.parentElement.getElementsByTagName("PRE")[0];
|
||||
const range = document.createRange();
|
||||
range.selectNodeContents(pre);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function copyPreToClipdord(btn) {
|
||||
function copyPreToClipbord(btn) {
|
||||
const pre = btn.parentElement.parentElement.getElementsByTagName("PRE")[0];
|
||||
const range = document.createRange();
|
||||
range.selectNodeContents(pre);
|
||||
|
|
Loading…
Reference in New Issue