Rizwan Ahmed
Rizwan Ahmed

Reputation: 146

How can I render LaTex in to actual math in CKEditor?

I am writing a plugin for simple math which will show symbols and user can use and write formulas. Am done till here. I got struck in how to get it displayed in CKEditor? Even I hard code some latex like "editor.insertHtml( " \displaystyle{ { {3} \over {4} } } ");" it does not convert to math inside of CKEditor.

I know that I need to include this library "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML". But not understanding how to include this in CKEdtior?

Please help!!!

Upvotes: 1

Views: 1683

Answers (2)

user1251378
user1251378

Reputation: 121

view of custom mathjax plugin there is my repo in github, check it https://github.com/bagana89/CKeditorMathJaxPlugin

Upvotes: 0

Vokiel
Vokiel

Reputation: 141

Have you tried http://ckeditor.com/addon/mathjax addon from CKEditor addons repository?

Upvotes: 0

Related Questions