Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1015 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 1015 Bytes

VisualMathEditor-TinyMCE

Integrates Visual Math Editor into TinyMCE

Usage:

  • copy the plugin resources (visualmatheditor folder) into the plugin folder of the TinyMCE installation
  • add MathJax and Bootstrap modal to the page containing the TinyMCE Textarea
		<script type="text/x-mathjax-config">
			MathJax.Hub.Config({
				jax: ["input/TeX", "output/SVG"],
				extensions: ["tex2jax.js", "MathMenu.js", "MathZoom.js"],
				showMathMenu: false,
				showProcessingMessages: false,
				messageStyle: "none",
				SVG: {
					useGlobalCache: false
				},
				TeX: {
					extensions: ["AMSmath.js", "AMSsymbols.js", "autoload-all.js"]
				}
			});
		</script>
		<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js"></script>
		<link rel="stylesheet" type="text/css" href="vme/css/bootstrap-modal.css"></link>
		<script type="text/javascript" src="vme/js/bootstrap-modal.js"></script>
  • add the visualmatheditor plugin to the TinyMCE initialisation