Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: plugins/filter wiris.

plugins/filter wiris: Difference between revisions

From MoodleDocs
Line 17: Line 17:
WIRIS plugin for Moodle 2.X & Moodle 3.X contains two different components that '''should''' be separately downloaded and installed:  
WIRIS plugin for Moodle 2.X & Moodle 3.X contains two different components that '''should''' be separately downloaded and installed:  


1 The WIRIS filter
1- The WIRIS filter


2 The WIRIS plugin for Atto / WIRIS plugin for TinyMCE - Depending on your Moodle version and configuration you may install  the WIRIS plugin for ATTO editor or a configured version of the WIRIS plugin for TinyMCE
2- The WIRIS plugin for Atto / WIRIS plugin for TinyMCE - Depending on your Moodle version and configuration you may install  the WIRIS plugin for ATTO editor or a configured version of the WIRIS plugin for TinyMCE





Revision as of 10:42, 2 November 2016


DESCRIPTION

If you install the WIRIS Plugin for Moodle you will add to the Moodle editor ( Atto or TinyMCE depending on the Moodle version you are using) a fully WYSIWYG for scientific expressions (WIRIS EDITOR) and, optionally, an advanced calculator tool (WIRIS CAS). Enabled editing to STEM related topics (Science, Technology, Engineering and Mathematics).

WIRIS plugin for Moodle 2.X & Moodle 3.X contains two different components that should be separately downloaded and installed:

1- The WIRIS filter

2- The WIRIS plugin for Atto / WIRIS plugin for TinyMCE - Depending on your Moodle version and configuration you may install the WIRIS plugin for ATTO editor or a configured version of the WIRIS plugin for TinyMCE


Requirements

   mbstring extension must be installed and enabled in the server.
   There must be no errors in http://<moodle>/admin/environment.php

FILTER INSTALLATION

WIRIS plugin filter for Moodle is a Moodle filter. To install the filter copy the content of the package into the folder 'filter' under the root of Moodle.


Install WIRIS plugin for Atto (Moodle 2.7 and higher)

To install it just copy the wiris directory into lib\editor\atto\plugins under the root of Moodle.

Install WIRIS plugin for TinyMCE

For Moodle 2.4 and higher

Starting from Moodle 2.4 WIRIS plugin for TinyMCE is a standard Moodle plugin. To install it just copy the tiny_mce_wiris directory into lib\editor\tinymce\plugins under the root of moodle.

For Moodle 2.2 and 2.3

Copy the files in TinyMCE plugins folder. You need to install a pre-configured version of the WIRIS plugin for TinyMCE that can be found here.Unzip the above file and copy the tiny_mce_wiris directory into lib\editor\tinymce\tiny_mce\<tiny_mce-version>\plugins under the root of moodle.

Activate the icons in the TinyMCE editor

Edit the file lib\editor\tinymce\lib.php and before the line (which is by the end of the file)
   return $params;
   //insert the following code 
   $params['plugins'] .= ",tiny_mce_wiris";
   $params['theme_advanced_buttons3'] = "tiny_mce_wiris_formulaEditor,tiny_mce_wiris_CAS,|," . $params['theme_advanced_buttons3'];
   return $params;

Enable the FILTER

To enable the WIRIS plugin for Moodle, login as administrator and go to Settings, Site administration, Plugins, Filters and Manage filters. You will see the Wiris filter and you will be able to enable it.

In order to avoid problems, Wiris filter must be the first. For sure it must be placed before Convert URLs into links and images.

Activating the WIRIS filter

Enable Chemistry editor

Login as administrator and go to Settings, Site administration, Plugins, Filters and Math & Science by WIRIS. Mark the checkbox Chemistry editor.

Check that all is OK

The best way to check all is OK is just to create a formula, save and display it.

Additionally there is an info page at http://<moodle>/filter/wiris/info.php. In any issue, please send screenshots of that to support.