Moodle 3.x Developer's Guide
上QQ阅读APP看书,第一时间看更新

Editor plugins

Another important type of plugin to consider is text editor plugins. The text editor built into Moodle is called Atto (which replaced the earlier TinyMCE editor) and this is also extensible through installable plugins. Take a look in the Moodle plugin directory for supported Atto plugins, for example, https://moodle.org/plugins/browse.php?list=category&id=53.

For example, two very common requirements for secondary teaching are the ability to edit and copy chemical and mathematical symbols into the Moodle text editor. There are, by way of example, two editor plugins that can achieve this: check out https://moodle.org/plugins/atto_chemistry and https://moodle.org/plugins/atto_mathslate. Both of these plugins create text in a special format that requires filter plugins to convert the text into a form that's more meaningful. Let's look at filter plugins next.