簡體   English   中英

如何將Mathjax插件添加到ckeditor

[英]How to add mathjax plugin to ckeditor

我在ckeditor的plugins文件夾中添加了mathjax插件。 但是,在為存在的腳本指定此特定行之后,甚至編輯器也不會顯示。您能幫我解決這個問題嗎? 在添加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

您還需要下載並安裝插件。 https://ckeditor.com/cke4/addon/mathjax

下載它->解壓縮到ckeditor / plugins /,它將起作用。

還要記住,多個插件必須這樣逗號分隔:extraPlugins ='mathjax,plugin1,plugin2,etc',否則它也將無法工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM