Status |
---|
| |
---|
title | Release 2.16.0 or later |
---|
|
This is an equation editor plug-in that allows you to insert equations/chemical formulas and edit properties.
Image Added
Use Module
The SynapEditor equation editor plug-in uses a commercial module called MathType.
If you wish to use it, please contact us through the page below.
How to use
Load plugin file
Code Block |
---|
|
<!-- MathTypeYou need to add the library to use it. (https://www.npmjs.com/package/@wiris/mathtype-generic#documentation) -->
<script src="url of mathtype-generic/wirisplugin-generic.js"></script>
<!-- SynapEditor Since the object can be applied only when it exists, it must be included under the editor script file. -->
<script src="url of mathType.min.js"></script> |
Adding a Button to the Toolbar
Equation editing and formula editing buttons can be added to the toolbar area and menu area.
Add to Toolbar
Image Added
Code Block |
---|
language | js |
---|
theme | Emacs |
---|
title | synapeditor.config.js |
---|
|
//...
'editor.toolbar': [
// formula/chemical formula
'mathType.math', 'mathType.chem'
//...
],
// ... |
Setting up the plugin
Settting mathType
Sets the properties to be used when initializing the window.WirisPlugin.GenericIntegration object.
Code Block |
---|
language | js |
---|
theme | Emacs |
---|
title | synapeditor.config.js |
---|
|
//...
'mathType.config': {
'properties': {
'configurationService': '/pluginwiris_engine/app/configurationjs'
}
}
// ... |