Open
Description
When attempting to load the WebView, the following error occurs.
I/chromium: [INFO:CONSOLE(1)] "Uncaught ReferenceError: MathJax is not defined", source: (1)
Here is my code for loading the WebView (with the MathJax src loaded into my assets folder).
WebView w = (WebView) findViewById(R.id.webView);
w.getSettings().setJavaScriptEnabled(true);
w.getSettings().setBuiltInZoomControls(false);
w.loadDataWithBaseURL("http://bar", "<script type='text/x-mathjax-config'>"
+"MathJax.Hub.Config({ "
+"showMathMenu: false, "
+"jax: ['input/TeX','output/HTML-CSS'], "
+"extensions: ['tex2jax.js'], "
+"TeX: { extensions: ['AMSmath.js','AMSsymbols.js',"
+"'noErrors.js','noUndefined.js'] } "
+"});</script>"
+"<script type='text/javascript' "
+"src='file:///android_asset/MathJax/MathJax.js'"
+"></script><span id='math'></span>","text/html","utf-8","");
Metadata
Metadata
Assignees
Labels
No labels