diff options
author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-10-15 11:37:46 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 11:37:46 +0530 |
commit | 3a24f10d7cdb01a0da36f2f34db013b0d9c71317 (patch) | |
tree | a12c6cbf6f8c076c268ff0f9dd59dbd54b1b8a7d | |
parent | 056a46cc97bb6977d8ad8539112f905d2064de5e (diff) | |
parent | 3fc036e01a3b79ef92e628bb16e63cfc64c0c809 (diff) |
Merge pull request #1911 from yoyomo/fix-copying-invisible-text
fix copying invisible text
-rw-r--r-- | src/theme/book.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theme/book.js b/src/theme/book.js index d40440c7..c8f52cc1 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -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; } } |