Reputation: 121
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.sstatic.net/SgDfU.png
[2]: https://i.sstatic.net/dJoqH.png
Upvotes: 0
Views: 875
Reputation: 2410
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.
Upvotes: 1