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>
339
339
'flags': {
340
340
'blocks': true,
341
341
'snippets': true,
342
- 'share': true
342
+ 'share': true,
343
+ 'experimental': false
343
344
},
344
345
});
345
346
</script>
Original file line number Diff line number Diff line change @@ -337,6 +337,10 @@ function web_editor(config) {
337
337
EDITOR . setCode ( config . translate . code . start ) ;
338
338
}
339
339
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
+ }
340
344
// Configure the zoom related buttons.
341
345
$ ( "#zoom-in" ) . click ( function ( e ) {
342
346
e . stopPropagation ( ) ;
You can’t perform that action at this time.
0 commit comments