Skip to content

Commit

Permalink
Merge pull request #1911 from yoyomo/fix-copying-invisible-text
Browse files Browse the repository at this point in the history
fix copying invisible text
  • Loading branch information
Dylan-DPC authored Oct 15, 2022
2 parents 056a46c + 3fc036e commit 3a24f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theme/book.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function playground_text(playground) {
let editor = window.ace.edit(code_block);
return editor.getValue();
} else {
return code_block.textContent;
return code_block.innerText;
}
}

Expand Down

0 comments on commit 3a24f10

Please sign in to comment.