2014-11-21 108 views
0

我一直在努力为ckeditor添加mathml支持。我已经经历了几个链接,但似乎没有工作。我甚至尝试过ckeditor的WIRIS插件,但它没有给我任何结果。对于WIRIS我跟着this链接。有人能告诉我如何为ckeditor实现mathml吗?ckeditor Mathml插件安装

CKEDITOR版本: 4.4.5

感谢,

回答

2

假设你已经具备了所有你所要做的CKEditor如下:

  1. Download the WIRIS ckeditor plugin,把整个文件夹中的CKEditor的plugins文件夹:
    /path-to/ckeditor/plugins/ckeditor_wiris
  2. 添加脚本标记的正好在ckeditor标签下面。
  3. 一下添加到CKEditor的的配置属性:

    extraPlugins:'ckeditor_wiris' 
    allowedContent: true 
    

很明显,你有自己的路去那里的CKEditor位于替换“路径为”。 它应该看起来像这样:

<!DOCTYPE html> 
<html> 
    <head> 
     <title></title> 
     <meta charset="utf-8"> 
     <script src="path-to/ckeditor/ckeditor.js"></script> 
     <script src="path-to/ckeditor/plugins/ckeditor_wiris/plugin.js"></script> 
    </head> 
    <body> 
     <form> 
      <textarea name="editor1" id="editor1" rows="10" cols="80"> 
       This is my textarea to be replaced with CKEditor. 
      </textarea> 
      <script> 
       CKEDITOR.replace('editor1', { 
        extraPlugins:'ckeditor_wiris', 
        allowedContent: true 
       }); 

      </script> 
     </form> 
    </body> 
</html> 
+0

这就是我试图实现的。 – 2014-11-25 04:56:18

0

是否有人可以告诉我怎么做我的CKEditor的实施MATHML?

为什么不让网页浏览器的MathML实现(Firefox支持MathML,WebKit也支持,Google只需要在Chrome中启用它)。

如果通过“执行”,您的意思是避免CKEditor在您尝试将其删除时将其删除 我写过http://ckeditor.com/addon/texzilla时遇到此问题。插件的源代码可以在https://github.com/r-gaia-cs/CKEditor-TeXZilla找到(希望这可以帮助您找到解决问题的方法)。