Jump to content

Recommended Posts


When I try to insert a MathML formula through the HTML editor, it gets transformed into the raw formula and all MathML tags disappear.  I'm new both to ProcessWire and to MathML though, so maybe I missed something.  I copypasted the following lines as a test :

<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>

After saving the page it becomes simply "e2x+1" in the HTML page.

So, is there something (e.g. automatic HTML tag checking) preventing the insertion of MathML code ?  If so, how can I work it around ?


Share this post

Link to post
Share on other sites

Assuming you are using TinyMCE and not the CKEditor module, take a look at some of these links:






I haven't used any of these, so no recommendations as to what is better, but hopefully should get you going.

EDIT: You might also be able to achieve what you want by editing the valid elements on the field's input tab > tinymce advanced settings.

  • Like 4

Share this post

Link to post
Share on other sites

Thanks.  I understood from your post and a bit of search that ProcessWire was using TinyMCE by default, and found out I could switch to raw textarea through "setup > fields > body > details" in the admin panel — which is for the better, since I'm not fond of rich text editor and prefer writing HTML.

Indeed the stripping is done by TinyCME, so not using it obviously enables rendering of MathML without further action.

Adding MathML valid elements as suggested in your edit should also work (didn't test), but I guess people willing to use a rich text editor would prefer to use one of the plugins you linked to — though most are quite old, not sure they still work ?

Thanks again !

  • Like 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...