This plugin will make the creation of multilingual contents on Moodle much more easier with Atto editor.
The plugin is developed to work with Iñaki Arenaza's multilang2 filter, and the idea is based on his plugin for TinyMCE editor.
The latest release is v1.9 (build 2017102700) for Moodle 2.9, 3.0, 3.1, 3.2, 3.4 and 3.4 (Checkout v2.9.1.9, v3.0.1.9, v3.1.1.9, v3.2.1.9 and v3.3.1.9 releases, respectively.
- Added Grunt support files. No we can check Moodle Javascript coding guidelines and minify the plugin code without installing the plugins.
- Minor Javascript coding guidelines fix (signalled by the minifier, but ignored by the linter!)
- Multiple bug fixes, especially when there were more than one Atto editor in the same page. Closes issues #2, #18, #21.
- Multilang tag highlighting 's are now removed/added when switching to/from HTML view, reducing clutter when editing the HTML code.
- Cleaned the code to conform to PHP, PHPDoc and Javascript Moodle coding guidelines (all checks pass!)
As mentioned before, filter_multilang2 is required.
- Copy repository content in moodleroot/lib/editor/atto/plugins. The following can be omitted:
- tests/ (if you're not going to test it with Behat)
- .gitmodules
- build.xml
- Install the plugin from Moodle.
- Go to "Site administration" >> "Plugins" >> "Text editors" >> "Atto HTML editor" >> "Atto toolbar settings", and add multilang2 to the Toolbar config where you prefer. E.g.
multilang2 = multilang2
(see Text editor - Toolbar settings and Text editor - Adding extra buttons for instructions on how to add a plugin button to Atto toolbar.