|
@@ -46,16 +46,16 @@ |
|
|
block discarded – undo |
|
46
|
46
|
$lang = $event->getRouteMatch()->getParam('lang'); |
|
47
|
47
|
|
|
48
|
48
|
$helper = new FormEditorLight(); |
|
49
|
|
- if(isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])){ |
|
|
49
|
+ if (isset($config['view_helper_config']['form_editor']['light']) && is_array($config['view_helper_config']['form_editor']['light'])) { |
|
50
|
50
|
$helper->setOptions($config['view_helper_config']['form_editor']['light']); |
|
51
|
51
|
} |
|
52
|
52
|
|
|
53
|
|
- $helper->setOption('theme' , 'modern'); |
|
54
|
|
- $helper->setOption('selector' , 'div.tinymce_light'); |
|
|
53
|
+ $helper->setOption('theme', 'modern'); |
|
|
54
|
+ $helper->setOption('selector', 'div.tinymce_light'); |
|
55
|
55
|
|
|
56
|
|
- if (in_array($lang,['de','fr','it','es','hi','ar','ru','zh','tr'])) { |
|
|
56
|
+ if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) { |
|
57
|
57
|
$helper->setOption('language', $lang); |
|
58
|
|
- $helper->setOption('language_url', $basePath('/js/tinymce-lang/') . $lang .'.js'); |
|
|
58
|
+ $helper->setOption('language_url', $basePath('/js/tinymce-lang/').$lang.'.js'); |
|
59
|
59
|
} |
|
60
|
60
|
return $helper; |
|
61
|
61
|
} |
Please login to merge, or discard this patch.