diff --git a/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html b/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html index f33c05cb74c0f1e4e732bf88d5c52d8c9cdc293b..c85948e4d1338e211901a6698038053f51258bf1 100644 --- a/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html +++ b/src/main/java/org/olat/core/commons/fullWebApp/_content/fullwebapplayout.html @@ -59,11 +59,19 @@ function o_mathjax(fct_success) { extensions: ["jsMath2jax.js"], messageStyle: 'none', showProcessingMessages: false, + showMathMenu: false, + menuSettings: { }, jsMath2jax: { preview: "none" }, tex2jax: { ignoreClass: "math" + }, + "HTML-CSS": { + EqnChunk: 5, EqnChunkFactor: 1, EqnChunkDelay: 100 + }, + "fast-preview": { + disabled: true } }); if(!(typeof fct_success === "undefined")) { diff --git a/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java b/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java index a8bc83efecc0382e6353eb5cc5e004f50ca5d39e..57ab19ecb5c27d99ff30e1aeb796bb9a5be4adaa 100644 --- a/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java +++ b/src/main/java/org/olat/core/gui/control/generic/iframe/IFrameDeliveryMapper.java @@ -597,6 +597,27 @@ public class IFrameDeliveryMapper implements Mapper { appendStaticJs("js/prototype/prototype.js"); } + /* + MathJax.Hub.Config({ + extensions: ["jsMath2jax.js"], + messageStyle: 'none', + showProcessingMessages: false, + showMathMenu: false, + menuSettings: { }, + jsMath2jax: { + preview: "none" + }, + tex2jax: { + ignoreClass: "math" + }, + "HTML-CSS": { + EqnChunk: 5, EqnChunkFactor: 1, EqnChunkDelay: 100 + }, + "fast-preview": { + disabled: true + } + }); + */ public void appendJsMath() { append("<script type=\"text/javascript\" src=\""); append(WebappHelper.getMathJaxCdn()); @@ -604,12 +625,21 @@ public class IFrameDeliveryMapper implements Mapper { append("<script type=\"text/javascript\">\n"); append("MathJax.Hub.Config({\n"); append(" extensions: [\"jsMath2jax.js\"],\n"); + append(" messageStyle: 'none',\n"); append(" showProcessingMessages: false,\n"); + append(" showMathMenu: false,\n"); + append(" menuSettings: { },\n"); append(" jsMath2jax: {\n"); append(" preview: \"none\"\n"); append(" },\n"); append(" tex2jax: {\n"); append(" ignoreClass: \"math\"\n"); + append(" },\n"); + append(" \"HTML-CSS\": {\n"); + append(" EqnChunk: 5, EqnChunkFactor: 1, EqnChunkDelay: 100\n"); + append(" },\n"); + append(" \"fast-preview\": {\n"); + append(" disabled: true\n"); append(" }\n"); append("});"); append("</script>");