wiris / moodle-tiny_wiris

4 stars 3 forks source link

[KB-41612] Make MathType the default formula editor in Moodle #13

Closed xripoll-at-wiris closed 5 months ago

xripoll-at-wiris commented 8 months ago

Description

As a part of the Moodle partnership, they agreed in the contract that they would implement a feature for us in Moodle. The feature is: when MathType is installed, automatically remove the default math editor button from the toolbar.

The understanding at the time was that this had to be implemented on their side, however now they are saying we can do this easily. They provided a snippet which, modified appropriately, became this PR.

Steps to reproduce

  1. Start a Moodle that has TinyMCE 6 (e.g. Moodle 4.2 with PHP 8.1).
  2. Enable development mode by setting the cachejs config value to false in the admin settings.
  3. Configure Tiny as the default text editor, enable the Wiris filter, and set it up as the first filter.
  4. Open a page with Tiny.

Actual result

The default equation editor is shown, both under the Insert menu and in the toolbar (the symbol is a pocket calculator).

Expected result

Instead of the default equation editor, MathType and ChemType appear.


#taskid 41612