Generic Editor services
The following instructions show how to configure a generic integration to use custom MathType Web integration services. These instructions assume that a custom editor is being configured following the Getting started guide.
Install instructions
Java
To install the Java services follow the steps below:
- Download the MathType Web Integration Services - Java package.
- Deploy the pluginwiris_engine war file.
- Add the following to genericIntegrationProperties before creating the new instance of genericIntegration class:
In the previous example the JavaScript code should be the following:genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/pluginwiris_engine/app/configurationjs'; genericIntegrationProperties.serviceProviderProperties.server = 'java';
<script> var genericIntegrationProperties = {}; genericIntegrationProperties.target = document.getElementById("example"); genericIntegrationProperties.toolbar = document.getElementById("toolbarLocation"); // Load Java services genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/pluginwiris_engine/app/configurationjs'; genericIntegrationProperties.serviceProviderProperties.server = 'java'; // genericIntegration instance var genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties); genericIntegrationInstance.init(); genericIntegrationInstance.listeners.fire('onTargetReady', {}); </script>
PHP
To install the PHP services follow the steps below:
- Download the MathType Web Integration Services - PHP package.
- Extract all files into a directory in the web server's DocumentRoot.
- Add the following to genericIntegrationProperties before creating the new instance of genericIntegration class:
In the previous example the JavaScript code should be the following:genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/<path-to-php-services>/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'php';
<script> var genericIntegrationProperties = {}; genericIntegrationProperties.target = document.getElementById("example"); genericIntegrationProperties.toolbar = document.getElementById("toolbarLocation"); // Load PHP services genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/<path-to-php-services>/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'php'; // genericIntegration instance var genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties); genericIntegrationInstance.init(); genericIntegrationInstance.listeners.fire('onTargetReady', {}); </script>
.NET
To install the .NET services follow the steps below:
- Download the MathType Web Integration Services - Aspx package.
- Install the application in IIS.
- Add the following line to genericIntegrationProperties before creating the new instance of genericIntegration class:
In the previous example the JavaScript code should be the following:genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/<path-to-aspx-services>/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'aspx';
<script> var genericIntegrationProperties = {}; genericIntegrationProperties.target = document.getElementById("example"); genericIntegrationProperties.toolbar = document.getElementById("toolbarLocation"); // Load .NET services genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/<path-to-aspx-services>/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'aspx'; // genericIntegration instance var genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties); genericIntegrationInstance.init(); genericIntegrationInstance.listeners.fire('onTargetReady', {}); </script>
Ruby on Rails
To install the Ruby on Rails services follow the steps below:
- Download the MathType Web Integration Services - Ruby on Rails package.
- Install the wirispluginengine.gem gem.
gem install -l wirispluginengine.gem
- Add the following line to genericIntegrationProperties before creating the new instance of genericIntegration class:
In the previous example the JavaScript code should be the following:genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/wirispluginengine/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'ruby';
<script> var genericIntegrationProperties = {}; genericIntegrationProperties.target = document.getElementById("example"); genericIntegrationProperties.toolbar = document.getElementById("toolbarLocation"); // Load Ruby on Rails services genericIntegrationProperties.serviceProviderProperties = {}; genericIntegrationProperties.serviceProviderProperties.URI = '<app-server>/wirispluginengine/integration'; genericIntegrationProperties.serviceProviderProperties.server = 'ruby'; // genericIntegration instance var genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties); genericIntegrationInstance.init(); genericIntegrationInstance.listeners.fire('onTargetReady', {}); </script>