Browse files

MINOR: Enable non-default language for tinyMCE, setting language in _…

…config.php didn't work. Thanks for @christian

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@111875 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 7554439 commit ee4e74880328c0d2dfdc23cb33507fb31bfde7fc @phalkunz phalkunz committed with sminnee Oct 11, 2010
Showing with 1 addition and 1 deletion.
  1. +0 −1 _config.php
  2. +1 −0 code/LeftAndMain.php
View
1 _config.php
@@ -21,7 +21,6 @@
'friendly_name' => 'Default CMS',
'priority' => '50',
'mode' => 'none',
- 'language' => i18n::get_tinymce_lang(),
'body_class' => 'typography',
'document_base_url' => Director::absoluteBaseURL(),
View
1 code/LeftAndMain.php
@@ -162,6 +162,7 @@ function init() {
// Set default values in the config if missing. These things can't be defined in the config
// file because insufficient information exists when that is being processed
$htmlEditorConfig = HtmlEditorConfig::get_active();
+ $htmlEditorConfig->setOption('language', i18n::get_tinymce_lang());
if(!$htmlEditorConfig->getOption('content_css')) {
$cssFiles = 'cms/css/editor.css';

0 comments on commit ee4e748

Please sign in to comment.