Skip to content

Commit

Permalink
move csrf token into formdata for PublicLab.Editor richTextModule (pu…
Browse files Browse the repository at this point in the history
…bliclab#9504)

* move csrf token into formdata for PublicLab.Editor richTextModule

ref publiclab#9438

* remove ", :fr" from application.rb re publiclab#9481
  • Loading branch information
jywarren authored and billymoroney1 committed Dec 28, 2021
1 parent f73e600 commit 96de406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/editor/rich.html.erb
Expand Up @@ -393,6 +393,7 @@
token: $('meta[name="csrf-token"]').attr('content')
},
richTextModule: {
token: $('meta[name="csrf-token"]').attr('content'),
authorsAutocomplete: false,
tagsAutocomplete: false,
formats: ['jpg', 'jpeg', 'png', 'gif'],
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -55,7 +55,7 @@ class Application < Rails::Application
# Enable the asset pipeline
config.assets.enabled = true

I18n.available_locales = [:en, :de, "zh-CN", :ar, :es, "hi-IN", :it, :ko, "pt-BR", :ru, :fr]
I18n.available_locales = [:en, :de, "zh-CN", :ar, :es, "hi-IN", :it, :ko, "pt-BR", :ru]
config.i18n.default_locale = :en

config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
Expand Down

0 comments on commit 96de406

Please sign in to comment.