mathjax font test is not working on right click paste

21 views
Skip to first unread message

awadhe...@learningmate.com

unread,
Jan 19, 2017, 4:42:23 AM1/19/17
to MathJax Users


Hi,

Steps to reproduce : 

"math font test" is "preview is shown here" in attachment.

copy any math equation or any text and paste by key (ctrl+v) it in the editor of mathjax. The math font text is working fine, but if you paste the same content with right click of the mouse then math font test is not working.

Thank you

Daniel

unread,
Jan 19, 2017, 6:29:19 AM1/19/17
to MathJax Users, awadhe...@learningmate.com
The problem is that the preview update is bind to key up. To catch pasting as well it would have to be input. So line 111 should be instead:

<textarea id="MathInput" cols="60" rows="10" oninput="Preview.Update()" style="margin-top:5px">

instead of

<textarea id="MathInput" cols="60" rows="10" onkeyup="Preview.Update()" style="margin-top:5px">

Peter Krautzberger

unread,
Jan 19, 2017, 7:13:39 AM1/19/17
to mathja...@googlegroups.com, awadhe...@learningmate.com
Hi,

 if you paste the same content with right click of the mouse then [demo] is not working.

This is the intended behavior at this time. You can add a space to trigger rendering.

The problem is that the preview update is bind to key up. 

Yes. The code is from an example that was designed to work on IE<9 where oninput is not available.


Regards,
Peter.

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages