mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
75544392a2
commit
ee4e748803
@ -21,7 +21,6 @@ HtmlEditorConfig::get('cms')->setOptions(array(
|
|||||||
'friendly_name' => 'Default CMS',
|
'friendly_name' => 'Default CMS',
|
||||||
'priority' => '50',
|
'priority' => '50',
|
||||||
'mode' => 'none',
|
'mode' => 'none',
|
||||||
'language' => i18n::get_tinymce_lang(),
|
|
||||||
|
|
||||||
'body_class' => 'typography',
|
'body_class' => 'typography',
|
||||||
'document_base_url' => Director::absoluteBaseURL(),
|
'document_base_url' => Director::absoluteBaseURL(),
|
||||||
|
@ -162,6 +162,7 @@ class LeftAndMain extends Controller {
|
|||||||
// Set default values in the config if missing. These things can't be defined in the config
|
// 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
|
// file because insufficient information exists when that is being processed
|
||||||
$htmlEditorConfig = HtmlEditorConfig::get_active();
|
$htmlEditorConfig = HtmlEditorConfig::get_active();
|
||||||
|
$htmlEditorConfig->setOption('language', i18n::get_tinymce_lang());
|
||||||
if(!$htmlEditorConfig->getOption('content_css')) {
|
if(!$htmlEditorConfig->getOption('content_css')) {
|
||||||
$cssFiles = 'cms/css/editor.css';
|
$cssFiles = 'cms/css/editor.css';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user