【问题标题】:ckeditor Mathml plugin installationckeditor Mathml 插件安装
【发布时间】:2015-01-19 08:56:46
【问题描述】:

我一直在努力为 ckeditor 添加 mathml 支持。我浏览了几个链接,但似乎没有一个有效。我什至尝试过 ckeditor 的 WIRIS 插件,但它没有给我任何结果。对于 WIRIS,我关注了this 链接。有人可以告诉我如何为 ckeditor 实现 mathml。

CKeditor 版本: 4.4.5

谢谢,

【问题讨论】:

    标签: javascript php phpmyadmin ckeditor mathml


    【解决方案1】:

    假设您已经安装了 ckeditor,您所要做的就是:

    1. Download the WIRIS ckeditor plugin 并将整个文件夹放入ckeditor的plugins文件夹中:
      /path-to/ckeditor/plugins/ckeditor_wiris
    2. 在 ckeditor 标记正下方的头部添加脚本标记。
    3. 将此添加到 ckeditor 的配置属性中:

      extraPlugins:'ckeditor_wiris'
      allowedContent: true
      

    显然你必须用你自己的路径替换 'path-to' 到 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>
    

    【讨论】:

    • 这是我试图实现的。
    • 但是CKeditor 5没有plugins文件夹,这种情况怎么办?
    【解决方案2】:

    谁能告诉我如何为 ckeditor 实现 mathml?

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

    如果“实施”是指避免 CKEditor 在尝试包含它时将其删除 我在写http://ckeditor.com/addon/texzilla 时遇到了这个问题。该插件的源代码可以在https://github.com/r-gaia-cs/CKEditor-TeXZilla 找到(希望这可以帮助您找到解决问题的方法)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-03
      • 2016-04-05
      • 2016-07-27
      • 2020-04-30
      • 2021-05-27
      • 1970-01-01
      • 2021-07-27
      相关资源
      最近更新 更多