ckeditor Mathml plugin installation

1.6k views Asked by At

I have been struggling to add mathml support for ckeditor . I have gone through few links but none seems to be working. I have even tried WIRIS plugin for ckeditor but it didn't gave me any result. For WIRIS i have followed this link. Can someone please tell me how do I Implement mathml for ckeditor.?

CKeditor Version: 4.4.5

Thanks,

2

There are 2 answers

2
jazZRo On BEST ANSWER

Assuming you have ckeditor in place all you have to do is the following:

  1. Download the WIRIS ckeditor plugin and put the entire folder in the plugins folder of ckeditor:
    /path-to/ckeditor/plugins/ckeditor_wiris
  2. Add the script tag in the head right under the ckeditor tag.
  3. Add this to the config property of ckeditor:

    extraPlugins:'ckeditor_wiris'
    allowedContent: true
    

Obviously you have to replace 'path-to' with your own path to where ckeditor is located. It should look something like this:

<!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
Raniere Silva On

Can someone please tell me how do I Implement mathml for ckeditor?

Why not let the MathML implementation for the web browser (Firefox supports MathML and WebKit also does, Google just have to enable it in Chrome).

If by "implement" you mean avoid CKEditor remove it when you try to include it I had this problem when I wrote http://ckeditor.com/addon/texzilla. The source code of the plugin can be found at https://github.com/r-gaia-cs/CKEditor-TeXZilla (hope this help you find how to solve your problem).