File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
window . onunload = function ( ) { } ;
5
5
6
6
// Global variable, shared between modules
7
- function playground_text ( playground ) {
7
+ function playground_text ( playground , hidden = true ) {
8
8
let code_block = playground . querySelector ( "code" ) ;
9
9
10
10
if ( window . ace && code_block . classList . contains ( "editable" ) ) {
11
11
let editor = window . ace . edit ( code_block ) ;
12
12
return editor . getValue ( ) ;
13
+ } else if ( hidden ) {
14
+ return code_block . textContent ;
13
15
} else {
14
16
return code_block . innerText ;
15
17
}
@@ -599,7 +601,7 @@ function playground_text(playground) {
599
601
text : function ( trigger ) {
600
602
hideTooltip ( trigger ) ;
601
603
let playground = trigger . closest ( "pre" ) ;
602
- return playground_text ( playground ) ;
604
+ return playground_text ( playground , false ) ;
603
605
}
604
606
} ) ;
605
607
You can’t perform that action at this time.
0 commit comments