Formula plugin for tinyMCE WYSIWYG editor. Allows user to add equations and formulas inside tinymce.
- IE8+
- Chrome
- Firefox
- Safari
- Opera
Install using bower.
bower install tinymce-formula
Install using npm.
npm install tinymce-formula
Or copy the source of the plugin to the plugins directory of your tinyMCE installation. Add the formula plugin to your tinyMCE configuration
plugins: "... formula",
Add optional configuration settings for the formula plugin, such as the external_plugins location.
tinymce.init({
...
plugins: 'formula',
toolbar: 'formula',
external_plugins: {
'formula': '/path/to/formula/plugin.min.js',
formula: {
mlang: 'mml'}
}
},
If you have installed the plugin in a different folder than the tinymce/plugins
folder then you need to specify
the relative or full path where the plugin is installed. TinyMCE 5 requires that this is within 'external_plugins' (See https://www.tiny.cloud/docs/configure/integration-and-setup/#external_plugins)
###mlang (optional, defaults to 'latex')
If you want to the editor default to MathML instead of latex, define mlang: 'mml'
in the options. The only two supported variables are latex
and mml
.
MIT licensed
Copyright (C) 2016 iCAP Lyon1, Panagiotis Tsavdaris