Skip to content

Commit 3a24f10

Browse files
authored
Merge pull request #1911 from yoyomo/fix-copying-invisible-text
fix copying invisible text
2 parents 056a46c + 3fc036e commit 3a24f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/book.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function playground_text(playground) {
1111
let editor = window.ace.edit(code_block);
1212
return editor.getValue();
1313
} else {
14-
return code_block.textContent;
14+
return code_block.innerText;
1515
}
1616
}
1717

0 commit comments

Comments
 (0)