Javascript Mathquill-\MathQuillMathField命令在使用latex()解析器后被删除
我通过用户在MathField上的操作动态使用Javascript Mathquill-\MathQuillMathField命令在使用latex()解析器后被删除,javascript,mathquill,Javascript,Mathquill,我通过用户在MathField上的操作动态使用\MathQuillMathField命令 范例 mathFieldSpan = document.getElementById('math-field'); fillInTheBlank = document.getElementById('fill-in-the-blank') mathField = MQ.MathField(mathFieldSpan); fillInTheBlank = MQ.StaticMath(document.getE
\MathQuillMathField
命令
范例
mathFieldSpan = document.getElementById('math-field');
fillInTheBlank = document.getElementById('fill-in-the-blank')
mathField = MQ.MathField(mathFieldSpan);
fillInTheBlank = MQ.StaticMath(document.getElementById('fill-in-the-blank'));
//add new input field with ```\MathQuillMathField``` command to the mathField object.
function mathFieldBtn() {
mathField.write('\\MathQuillMathField{}');
}
//display the received math input in static mathQuill element - fillInTheBlank
function save() {
fillInTheBlank.latex(mathField.latex());
}
但是\MathQuillMathField
在运行mathField.latex()
方法后被删除
如何动态保存空字段(\MathQuillMathField
)并在staticMath对象中显示它
我的目标是在静态数学表达式中允许部分输入(例如,让学生填写答案)