Commit 0757181ef0165467e3f273d10157bb1971c091f2
1 parent
4a6afb41
Exists in
master
and in
29 other branches
ActionItem79: using LanguageHelper in layout to translate TinyMCE
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@601 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
8 additions
and
0 deletions
Show diff stats
app/controllers/application.rb
app/views/layouts/application.rhtml
... | ... | @@ -13,6 +13,12 @@ |
13 | 13 | mode : "textareas", |
14 | 14 | theme : "advanced", |
15 | 15 | theme_advanced_toolbar_location : "top", |
16 | + theme_advanced_layout_manager: 'SimpleLayout', | |
17 | + 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", | |
18 | + theme_advanced_buttons2 : "", | |
19 | + theme_advanced_buttons3 : "", | |
20 | + apply_source_formatting : true, | |
21 | + language: <%= language.inspect %>, | |
16 | 22 | }); |
17 | 23 | </script> |
18 | 24 | ... | ... |
config/environment.rb
... | ... | @@ -81,6 +81,7 @@ Comatose.configure do |config| |
81 | 81 | config.admin_includes << :authenticated_system |
82 | 82 | config.admin_helpers << :application_helper |
83 | 83 | config.admin_helpers << :document_helper |
84 | + config.admin_helpers << :language_helper | |
84 | 85 | config.default_filter = '[No Filter]' |
85 | 86 | end |
86 | 87 | Comatose::AdminController.design :holder => 'environment' | ... | ... |