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 44window . onunload = function ( ) { } ;
55
66// Global variable, shared between modules
7- function playground_text ( playground ) {
7+ function playground_text ( playground , hidden = true ) {
88 let code_block = playground . querySelector ( "code" ) ;
99
1010 if ( window . ace && code_block . classList . contains ( "editable" ) ) {
1111 let editor = window . ace . edit ( code_block ) ;
1212 return editor . getValue ( ) ;
13+ } else if ( hidden ) {
14+ return code_block . textContent ;
1315 } else {
1416 return code_block . innerText ;
1517 }
@@ -599,7 +601,7 @@ function playground_text(playground) {
599601 text : function ( trigger ) {
600602 hideTooltip ( trigger ) ;
601603 let playground = trigger . closest ( "pre" ) ;
602- return playground_text ( playground ) ;
604+ return playground_text ( playground , false ) ;
603605 }
604606 } ) ;
605607
You can’t perform that action at this time.
0 commit comments