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