From 0757181ef0165467e3f273d10157bb1971c091f2 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 1 Oct 2007 20:05:32 +0000 Subject: [PATCH] ActionItem79: using LanguageHelper in layout to translate TinyMCE --- app/controllers/application.rb | 1 + app/views/layouts/application.rhtml | 6 ++++++ config/environment.rb | 1 + 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index cc49437..d6b7fcf 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -3,6 +3,7 @@ class ApplicationController < ActionController::Base helper :document + helper :language design :holder => 'environment' diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 6b7ddb9..91f00ac 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -13,6 +13,12 @@ mode : "textareas", theme : "advanced", theme_advanced_toolbar_location : "top", + theme_advanced_layout_manager: 'SimpleLayout', + theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,formatselect,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,separator,cleanup,code,separator,help", + theme_advanced_buttons2 : "", + theme_advanced_buttons3 : "", + apply_source_formatting : true, + language: <%= language.inspect %>, }); diff --git a/config/environment.rb b/config/environment.rb index a1b69be..34cf829 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -81,6 +81,7 @@ Comatose.configure do |config| config.admin_includes << :authenticated_system config.admin_helpers << :application_helper config.admin_helpers << :document_helper + config.admin_helpers << :language_helper config.default_filter = '[No Filter]' end Comatose::AdminController.design :holder => 'environment' -- libgit2 0.21.2