|
|
|
@ -16,7 +16,7 @@ class SurveyQuestion extends Basic |
|
|
|
|
*/ |
|
|
|
|
public function getConfig() |
|
|
|
|
{ |
|
|
|
|
if (api_get_setting('more_buttons_maximized_mode') != 'true') { |
|
|
|
|
if ('true' != api_get_setting('more_buttons_maximized_mode')) { |
|
|
|
|
$config['toolbar'] = $this->getNormalToolbar(); |
|
|
|
|
} else { |
|
|
|
|
$config['toolbar_minToolbar'] = $this->getMinimizedToolbar(); |
|
|
|
@ -25,6 +25,7 @@ class SurveyQuestion extends Basic |
|
|
|
|
|
|
|
|
|
return $config; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get the toolbar configuration when CKEditor is maximized. |
|
|
|
|
* |
|
|
|
@ -68,10 +69,10 @@ class SurveyQuestion extends Basic |
|
|
|
|
'BGColor', |
|
|
|
|
api_get_configuration_value('translate_html') ? 'Language' : '', |
|
|
|
|
], |
|
|
|
|
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
|
|
|
['true' == api_get_setting('allow_spellcheck') ? 'Scayt' : ''], |
|
|
|
|
['Styles', 'Format', 'Font', 'FontSize'], |
|
|
|
|
['PageBreak', 'ShowBlocks'], |
|
|
|
|
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
|
|
|
'true' == api_get_setting('enabled_wiris') ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
|
|
|
['Toolbarswitch', 'Source'], |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
@ -101,10 +102,8 @@ class SurveyQuestion extends Basic |
|
|
|
|
'BGColor', |
|
|
|
|
api_get_configuration_value('translate_html') ? 'Language' : '', |
|
|
|
|
], |
|
|
|
|
api_get_setting('enabled_wiris') == 'true' ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
|
|
|
'true' == api_get_setting('enabled_wiris') ? ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_CAS'] : [''], |
|
|
|
|
['Toolbarswitch', 'Source'], |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|