unit29868 / pressbooks

PressBooks - The CMS for books.
http://pressbooks.com/
1 stars 0 forks source link

MathML and TinyMCE #39

Open bdolor opened 10 years ago

bdolor commented 10 years ago

If MathML is placed into the content area, TinyMCE will strip it out before it gets to the export routine. A toggle between 'text' view and 'visual' view is all that is needed to blow away any MathML markup in post content. MathML tags (all except for <math>) fall into what tinymce thinks are not valid elements.

Exceptions will need to be made on the TinyMCE side of things if having MathML markup in the content area is required.

unit29868 commented 10 years ago

I've been utilizing a wordpress plugin to work around issues like this: http://wordpress.org/plugins/preserved-html-editor-markup/

It is a band-aid solution, but serviceable.