Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

RELEASE 2.16.0 OR LATER

This is an equation editor plug-in that allows you to insert equations/chemical formulas and edit properties.


Use Module

The SynapEditor equation editor plug-in uses a commercial module called MathType.


How to use

Load plugin file

<!-- 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

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.

synapeditor.config.js
//...
'mathType.config': { 
    'properties': { 
        'configurationService': '/pluginwiris_engine/app/configurationjs' 
    } 
}
// ...



  • No labels