|
|
|
|
@ -1,12 +1,11 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* TestFreeAnswer toolbar configuration. |
|
|
|
|
* |
|
|
|
|
* @package Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar |
|
|
|
|
*/ |
|
|
|
|
class TestMatching extends Basic |
|
|
|
|
{ |
|
|
|
|
@ -17,7 +16,7 @@ class TestMatching extends Basic |
|
|
|
|
*/ |
|
|
|
|
public function getConfig() |
|
|
|
|
{ |
|
|
|
|
if (api_get_setting('more_buttons_maximized_mode') != 'true') { |
|
|
|
|
if (api_get_setting('more_buttons_maximized_mode') !== 'true') { |
|
|
|
|
$config['toolbar'] = $this->getNormalToolbar(); |
|
|
|
|
} else { |
|
|
|
|
$config['toolbar_minToolbar'] = $this->getMinimizedToolbar(); |
|
|
|
|
@ -25,7 +24,7 @@ class TestMatching extends Basic |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$config['fullPage'] = false; |
|
|
|
|
$config['extraPlugins'] = 'wordcount'; |
|
|
|
|
$config['extraPlugins'] = $this->getPluginsToString(); |
|
|
|
|
$config['wordcount'] = [ |
|
|
|
|
// Whether or not you want to show the Word Count |
|
|
|
|
'showWordCount' => true, |
|
|
|
|
@ -37,8 +36,6 @@ class TestMatching extends Basic |
|
|
|
|
'wordLimit' => 'unlimited', |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
//$config['height'] = '200'; |
|
|
|
|
|
|
|
|
|
return $config; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -73,7 +70,7 @@ class TestMatching extends Basic |
|
|
|
|
['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'], |
|
|
|
|
['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], |
|
|
|
|
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'TextColor', 'BGColor'], |
|
|
|
|
[api_get_setting('allow_spellcheck') == 'true' ? 'Scayt' : ''], |
|
|
|
|
[api_get_setting('allow_spellcheck') === 'true' ? 'Scayt' : ''], |
|
|
|
|
['Styles', 'Format', 'Font', 'FontSize'], |
|
|
|
|
['PageBreak', 'ShowBlocks'], |
|
|
|
|
['Toolbarswitch'], |
|
|
|
|
@ -92,6 +89,7 @@ class TestMatching extends Basic |
|
|
|
|
'Maximize', |
|
|
|
|
'Bold', |
|
|
|
|
'Image', |
|
|
|
|
'Video', |
|
|
|
|
'Link', |
|
|
|
|
'PasteFromWord', |
|
|
|
|
'Audio', |
|
|
|
|
@ -111,9 +109,20 @@ class TestMatching extends Basic |
|
|
|
|
protected function getMinimizedToolbar() |
|
|
|
|
{ |
|
|
|
|
return [ |
|
|
|
|
$this->getNewPageBlock(), |
|
|
|
|
['PasteFromWord'], |
|
|
|
|
['Undo', 'Redo'], |
|
|
|
|
['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'], |
|
|
|
|
[ |
|
|
|
|
'Link', |
|
|
|
|
'Image', |
|
|
|
|
'Video', |
|
|
|
|
'Flash', |
|
|
|
|
'Oembed', |
|
|
|
|
'Youtube', |
|
|
|
|
'VimeoEmbed', |
|
|
|
|
'Audio', |
|
|
|
|
'Table', |
|
|
|
|
'Asciimath', |
|
|
|
|
], |
|
|
|
|
['BulletedList', 'NumberedList', 'HorizontalRule'], |
|
|
|
|
['JustifyLeft', 'JustifyCenter', 'JustifyRight'], |
|
|
|
|
['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'], |
|
|
|
|
|