Browse Source

Adding Asciimath, Asciisvg see BT#12706

jmontoyaa 7 years ago
parent
commit
3a0d8fbc24

+ 1 - 0
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestAnswerFeedback.php

@@ -101,6 +101,7 @@ class TestAnswerFeedback extends Basic
             ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
             ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
+            ['Asciimath', 'Asciisvg'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Source'],
             ['Toolbarswitch']
         ];

+ 3 - 2
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswer.php

@@ -54,7 +54,8 @@ class TestFreeAnswer extends Basic
             ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
             ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'],
             ['Link', 'Unlink', 'Anchor', 'Glossary'],
-            ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath', ],
+            ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar'],
+            ['Asciimath', 'Asciisvg'],
             '/',
             ['Table', '-', 'CreateDiv'],
             ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'],
@@ -98,7 +99,7 @@ class TestFreeAnswer extends Basic
         return [
             $this->getNewPageBlock(),
             ['Undo', 'Redo'],
-            ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath'],
+            ['Link', 'Image', 'Video', 'Flash', 'Audio', 'Table', 'Asciimath', 'Asciisvg'],
             ['BulletedList', 'NumberedList', 'HorizontalRule'],
             ['JustifyLeft', 'JustifyCenter', 'JustifyBlock'],
             ['Format', 'Font', 'FontSize', 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'],

+ 1 - 3
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestFreeAnswerStrict.php

@@ -5,7 +5,7 @@ namespace Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar;
 
 /**
  * TestFreeAnswerStrict toolbar configuration
- * 
+ *
  * @package Chamilo\CoreBundle\Component\Editor\CkEditor\Toolbar
  */
 class TestFreeAnswerStrict extends Basic
@@ -24,9 +24,7 @@ class TestFreeAnswerStrict extends Basic
         }
 
         $config['fullPage'] = false;
-
         $config['extraPlugins'] = 'wordcount';
-
         $config['wordcount'] = array(
             // Whether or not you want to show the Word Count
             'showWordCount' => true,

+ 2 - 1
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestMatching.php

@@ -52,7 +52,8 @@ class TestMatching extends Basic
             ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'],
             ['Undo', 'Redo', '-', 'SelectAll', 'Find', '-', 'RemoveFormat'],
             ['Link', 'Unlink', 'Anchor', 'Glossary'],
-            ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar', 'Asciimath',],
+            ['Image', 'Mapping', 'Video', 'Oembed', 'Youtube', 'Flash', 'Audio', 'leaflet', 'Smiley', 'SpecialChar'],
+            ['Asciimath', 'Asciisvg'],
             '/',
             ['Table', '-', 'CreateDiv'],
             ['BulletedList', 'NumberedList', 'HorizontalRule', '-', 'Outdent', 'Indent', 'Blockquote'],

+ 3 - 3
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php

@@ -18,8 +18,6 @@ class TestProposedAnswer extends Basic
     {
         $config['toolbarCanCollapse'] = true;
         $config['toolbarStartupExpanded'] = false;
-        //$config['width'] = '100';
-        //$config['height'] = '200';
         if (api_get_setting('more_buttons_maximized_mode') != 'true') {
             $config['toolbar'] = $this->getNormalToolbar();
         } else {
@@ -27,6 +25,7 @@ class TestProposedAnswer extends Basic
 
             $config['toolbar_maxToolbar'] = $this->getMaximizedToolbar();
         }
+
         return $config;
     }
 
@@ -48,7 +47,8 @@ class TestProposedAnswer extends Basic
         return [
             ['Bold', 'Subscript', 'Superscript'],
             ['Image', 'Link', 'Audio', 'Table', 'PasteFromWord', 'inserthtml'],
-            ['Maximize', 'Source'],
+            ['Asciimath', 'Asciisvg'],
+            ['Maximize', 'Source']
         ];
     }
 

+ 0 - 3
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestQuestionDescription.php

@@ -34,9 +34,6 @@ class TestQuestionDescription extends Basic
         );
 
         $config['extraPlugins'] = $this->getPluginsToString();
-
-        //$config['width'] = '100';
-        //$config['height'] = '200';
         if (api_get_setting('more_buttons_maximized_mode') != 'true') {
             $config['toolbar'] = $this->getNormalToolbar();
         } else {