Class: TinymceFm::FilemanagerController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tinymce_fm/filemanager_controller.rb

Instance Method Summary collapse

Instance Method Details

#tinymce_managed_cssObject



15
16
17
# File 'app/controllers/tinymce_fm/filemanager_controller.rb', line 15

def tinymce_managed_css
  
end

#tinymce_managed_jsObject



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.headers["Content-Type"] = "text/javascript; charset=utf-8"
  render :layout => false
end