I know that we can create contentEditable p, div, span, etc……..
But how can I create a contentEditable math element, like:
<math contenteditable>
.....
</math>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
contenteditableattribute is part of HTML, so would not expect it to work on MathML tags, and tests suggests the same.When you use MathML within HTML, you can wrap a
mathelement inside an HTML container that is editable, say<div contenteditable><math ...>...</math></div>. However, although this makes the text editable, it seems to be editable as text only. When you have, say,<mi>A</mi>and you edit in a browser by replacing the A by B, then it becomes just B in the document tree, a character with no markup (and therefore appearing in upright style, not italic).So basically the answer appears to be “no.”