Allow MathJax with CKEditor #1768

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 40c60b5c70
commit 9c21563a7f
  1. 2
      main/inc/lib/template.lib.php
  2. 2
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php
  3. 10
      src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/TestProposedAnswer.php

@ -753,7 +753,7 @@ class Template
}
if (api_get_setting('include_asciimathml_script') == 'true') {
$bowerJsFiles[] = 'MathJax/MathJax.js?config=AM_HTMLorMML';
$bowerJsFiles[] = 'MathJax/MathJax.js?config=TeX-AMS_HTML';
}
if ($isoCode != 'en') {

@ -102,7 +102,7 @@ class Basic extends Toolbar
if (api_get_setting('enabled_mathjax') == 'true') {
$plugins[] = 'mathjax';
$config['mathJaxLib'] = api_get_path(WEB_PATH).'web/assets/MathJax/MathJax.js?config=AM_HTMLorMML';
$config['mathJaxLib'] = api_get_path(WEB_PATH).'web/assets/MathJax/MathJax.js?config=TeX-AMS_HTML';
}
if (api_get_setting('enabled_asciisvg') == 'true') {

@ -46,7 +46,15 @@ class TestProposedAnswer extends Basic
{
return [
['Bold', 'Subscript', 'Superscript'],
['Image', 'Link', 'Audio', 'Table', 'PasteFromWord', 'inserthtml'],
[
'Image',
'Link',
'Audio',
'Table',
'PasteFromWord',
'inserthtml',
api_get_setting('enabled_mathjax') === 'true' ? 'Mathjax' : ''
],
['Asciimath', 'Asciisvg'],
['Maximize', 'Source']
];

Loading…
Cancel
Save