File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ <h2><i class="fa fa-unlock-alt"></i> <strong>{{ title }}</strong></h2>
339339 'flags': {
340340 'blocks': true,
341341 'snippets': true,
342- 'share': true
342+ 'share': true,
343+ 'experimental': false
343344 },
344345});
345346 </script>
Original file line number Diff line number Diff line change @@ -337,6 +337,10 @@ function web_editor(config) {
337337 EDITOR . setCode ( config . translate . code . start ) ;
338338 }
339339 EDITOR . ACE . gotoLine ( EDITOR . ACE . session . getLength ( ) ) ;
340+ // If configured as experimental update editor background to indicate it
341+ if ( config . flags . experimental ) {
342+ EDITOR . ACE . renderer . scroller . style . backgroundImage = "url('static/img/experimental.png')"
343+ }
340344 // Configure the zoom related buttons.
341345 $ ( "#zoom-in" ) . click ( function ( e ) {
342346 e . stopPropagation ( ) ;
You can’t perform that action at this time.
0 commit comments