简体   繁体   English

如何将Mathjax插件添加到ckeditor

[英]How to add mathjax plugin to ckeditor

I have added mathjax plugin in plugins folder in ckeditor. 我在ckeditor的plugins文件夹中添加了mathjax插件。 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] 在添加mathjax插件输出之前是这样的。[在此处输入图像描述] [1]在添加mathjax插件输出之前是这样的[在这里输入图像描述] [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 https://ckeditor.com/cke4/addon/mathjax

Downloade it -> unzip into ckeditor/plugins/ and it will work. 下载它->解压缩到ckeditor / plugins /,它将起作用。

Also remember that multiple plugins must comma separated like this: extraPlugins = 'mathjax, plugin1, plugin2, etc' , otherwise it will not work too. 还要记住,多个插件必须这样逗号分隔:extraPlugins ='mathjax,plugin1,plugin2,etc',否则它也将无法工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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