简体   繁体   中英

How to add mathjax plugin to ckeditor

I have added mathjax plugin in plugins folder in ckeditor. But, after specifying this particular lines to existed script even the editor also not displaying.Can you please help me out from this problem? Before adding mathjax plugin output is like this.[enter image description here][1] After adding mathjax plugin output is like this[enter image description here][2]

<textarea id="editor1" name="editor1" maxlength="50"></textarea>
     <script type="text/javascript">
                    CKEDITOR.replace( 'editor1', {
                    extraPlugins: 'mathjax',
                    mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML'
                } );
      </script>

      [1]: https://i.stack.imgur.com/SgDfU.png
      [2]: https://i.stack.imgur.com/dJoqH.png

You need also download and install the plugin. https://ckeditor.com/cke4/addon/mathjax

Downloade it -> unzip into ckeditor/plugins/ and it will work.

Also remember that multiple plugins must comma separated like this: extraPlugins = 'mathjax, plugin1, plugin2, etc' , otherwise it will not work too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM