File tree 1 file changed +5
-5
lines changed
app/assets/javascripts/active_admin/editor
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
( function ( window , document ) {
2
2
window . AA = ( window . AA || { } )
3
- window . AA . editor = ( window . AA . editor || { } )
3
+ var config = window . AA . editor = ( window . AA . editor || { } )
4
4
5
5
< % % w ( aws_access_key_id s3_bucket storage_dir ) . each do | option | % >
6
- window . AA . editor . < %= option % > = '<%= ActiveAdmin::Editor.configuration.send(option.to_sym) %>'
6
+ config . < %= option % > = '<%= ActiveAdmin::Editor.configuration.send(option.to_sym) %>'
7
7
< % end % >
8
8
9
- window . AA . editor . stylesheets = '<%= asset_path ' active_admin / editor / wysiwyg . css ' %>'
10
- window . AA . editor . spinner = '<%= asset_path ' active_admin / editor / loader . gif ' %>'
11
- window . AA . editor . uploads_enabled = < %= ActiveAdmin ::Editor . configuration . s3_configured ? % >
9
+ config . stylesheets = '<%= asset_path ' active_admin / editor / wysiwyg . css ' %>'
10
+ config . spinner = '<%= asset_path ' active_admin / editor / loader . gif ' %>'
11
+ config . uploads_enabled = < %= ActiveAdmin ::Editor . configuration . s3_configured ? % >
12
12
} ) ( window , document )
You can’t perform that action at this time.
0 commit comments