MINOR: Enable non-default language for tinyMCE, setting language in _config.php didn't work. Thanks for @christian (from r111875)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112808 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-19 01:04:15 +00:00
parent 1e6da51ad4
commit 6bab1cfa0a
2 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,6 @@ HtmlEditorConfig::get('cms')->setOptions(array(
'friendly_name' => 'Default CMS',
'priority' => '50',
'mode' => 'none',
'language' => i18n::get_tinymce_lang(),
'body_class' => 'typography',
'document_base_url' => Director::absoluteBaseURL(),

View File

@ -169,6 +169,7 @@ class LeftAndMain extends Controller {
// 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';