From 501514b06f104a63d23d48ddd32db99a2cb4a5b7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 27 Apr 2016 15:25:23 -0700 Subject: [PATCH] Issue #1585 TinyMce Language fix. --- e107_plugins/tinymce4/wysiwyg.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_plugins/tinymce4/wysiwyg.php b/e107_plugins/tinymce4/wysiwyg.php index 307a633bd..1856fa125 100644 --- a/e107_plugins/tinymce4/wysiwyg.php +++ b/e107_plugins/tinymce4/wysiwyg.php @@ -363,13 +363,15 @@ class wysiwyg $this->configName = $config['@attributes']['name']; + $tinyMceLanguage = $this->tinymce_lang(); + unset($config['@attributes']); $ret = array( 'selector' => '.e-wysiwyg', // 'editor_selector' => 'advancedEditor', - 'language' => $this->tinymce_lang() - + 'language' => $tinyMceLanguage, + 'language_url' => SITEURLBASE.e_PLUGIN_ABS."tinymce4/langs/" . $tinyMceLanguage . ".js" ); // if(e_ADMIN_AREA)