首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ckeditor Mathml插件安装

ckeditor Mathml插件安装
EN

Stack Overflow用户
提问于 2014-11-21 09:01:29
回答 2查看 1.5K关注 0票数 0

我一直在努力增加mathml对ckeditor的支持。我已经通过了几个链接,但似乎没有发挥作用。我甚至尝试过WIRIS插件,但它没有给我任何结果。对于WIRIS,我遵循了链接。请有人告诉我,我如何实现mathml的核心用户。?

CKeditor版本: 4.4.5

谢谢,

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-11-21 14:00:53

假设您已经准备就绪,那么您所要做的就是:

  1. 下载WIRIS ckeditor插件并将整个文件夹放到ckeditor的plugins文件夹中: /path-to/ckeditor/plugins/ckeditor_wiris
  2. 将脚本标记添加到头中,就在ckeditor标记下。
  3. 将其添加到ckeditor的config属性中: 插件外:‘ckeditor_wiris’allowedContent: true

显然,您必须将“路径- to”替换为您自己的路径,以找到ckeditor所在的位置。它应该是这样的:

代码语言:javascript
复制
<!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>
票数 2
EN

Stack Overflow用户

发布于 2014-11-21 12:28:38

有谁能告诉我,我如何实现mathml的核心用户?

为什么不让MathML实现为网络浏览器(火狐支持MathML和WebKit也支持,谷歌只需启用它在Chrome)。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27057529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档