3
4
5
6
7
8
9
10
11
12
13
|
# File 'app/controllers/tinymce_fm/filemanager_controller.rb', line 3
def tinymce_managed_js
@manager_theme = params[:theme].present? ? params[:theme] : "advanced"
@manager_lang = "en"
supported_languages = ["cs", "de", "en", "es", "fr", "it", "ja", "pl", "pt", "ru", "sk", "uk", "zh"]
@manager_controller = params[:manager]
if supported_languages.include?(I18n.default_locale.to_s)
@manager_lang = I18n.default_locale.to_s
end
response.["Content-Type"] = "text/javascript; charset=utf-8"
render :layout => false
end
|