×

Discover

Installation instructions: WIRIS plugin for Wordpress

DOWNLOAD

1 Requirements

  • Wordpress 3.0 or higher installed.
  • TinyMCE as text editor. Wordpress uses it as default.
  • A valid license to install the plugin in a production environment; otherwise, you can use the downloaded file just for demo purposes.

2 Copy files

  1. Unzip WIRIS plugin for Wordpress and add tiny_mce_wiris.php inside /wp-content/plugins
  2. Unzip WIRIS Plugin for TinyMCE and PHP package and add tiny_mce_wiris directory inside /wp-includes/js/tinymce/plugins
  3. Activate Wordpress WIRIS Plugin in your Wordpress plugins administration.
  4. Give write permissions to /wp-includes/js/tinymce/plugins/tiny_mce_wiris/cache and /wp-includes/js/tinymce/plugins/tiny_mce_wiris/formulas directories to the web server user (it will be used to store formula MathML codes and temporal images).
  5. Include WIRISplugins.js script in the header.php file of your theme right before the </head> closing tag. Using Wordpress the tag would be like this:
    <script src="<?php echo get_option('home');?>/wp-includes/js/tinymce/plugins/tiny_mce_wiris/integration/WIRISplugins.js?viewer=image" type="text/javascript"></script>

Note: Some Wordpress versions may add line breaks around formula images, this is related to Wordpress default wpautop filter. You can disable wpautop behaviour using a plugin like this or you can enable the image mode in our plugin.

3 Configure

Edit /wp-includes/js/tinymce/plugins/tiny_mce_wiris/configuration.ini to set your own values. This table specifies all possible parameters.

4 Clean and backup your WIRIS plugin for TinyMCE

Check this page.