ckeditor和mathjax-如何显示动态加载的数学方程式 [英] ckeditor and mathjax - How to display Mathematical equations loaded dynamically

查看:100
本文介绍了ckeditor和mathjax-如何显示动态加载的数学方程式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CKEditor(启用了MathJax插件)创建了一个简单页面,以输入数学问题.通过此页面输入问题并将其存储在数据库中.示例问题已保存

I created a simple page with CKEditor(MathJax plugin enabled) to enter Mathematical questions. Question is entered via this page and stored in database. Sample question saved

< p>查找< span class ="math-tex"> \(0.5 \ overline {88} + 0. \ overline {94} \)</span>的值.</p>

到目前为止一切都很好.问题是我还有另一个页面,该页面通过数据库的AJAX调用加载这些问题并显示这些问题.但是,我得到的是:

Everything is fine so far. Problem is I have another page which loads these questions via AJAX call from the database and displays these questions. However, what I am getting is:

查找\(0.5 \ overline {88} + 0. \ overline {94} \)的值.

MathJax库已加载在此页面上.我认为,如果稍后再加载内容,则需要再次调用MathJax.但是不知道如何.请帮忙.

MathJax library is loaded on this page. I figured I need to call MathJax again if the content was loaded later. But cant figure out how. Please help.

推荐答案

只需调用加载内容后 MathJax.typeset()

这篇关于ckeditor和mathjax-如何显示动态加载的数学方程式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆