Issue 1:
At present CKEditor mangles math tags so that when the textarea content is submitted "invalid-markup" is shown when the contents are rendered in the browser. It seems to add a lot of <msup></msup> <ml></ml> tags among others.
Is there a way to tell CKEditor not to modify anything that is inside <math> tags?
The second issue is to display mathml properly in the edit area:
The code found at (http://www1.chapman.edu/~jipsen/mathml/ ... oxAndIE.js) can be used to convert math tags to displayable math formulas - basically it replaces the nodes with a namespaced element. So, if I can resolve issue one, then how to use the convert() function found in the above referred js.
Pointers to way forward much appreciated.
thanks,
manokaran
Tue, 07/20/2010 - 20:40
#1
Re: Displaying MathML in CKEditor
Problem two would probably require you to write a plugin, especially to render in realtime.
Re: Displaying MathML in CKEditor
I have written a plugin which I will make available on the web and post a link here soon.
thanks,
manokaran
Re: Displaying MathML in CKEditor
Thanks comp615. That solved issue 1
I have written a plugin which I will make available on the web and post a link here soon.
thanks,
manokaran
Re: Displaying MathML in CKEditor
Mat
Solution
This is a peculiar issue; got resolved by adding a space before mo tag
- Get the mathml content
- If it does not contain <munder> or <munderover>, replace "<mo>" with " <mo>"
That should work.
problem 1
can you elaborate on your problem 1 solution?