How to add my own filter?

How to add my own filter?

by Ngouoni-Épigat NDOGUÉFOUBA -
Number of replies: 3

Hi all,


This is my first discussion on the forum and I want to know how to add my own filter.


The basic idea here is to replace a word by a image, like the "Display emoticons as images" filter works.


For example if I type *mdbMAKUKUmdb* I'll get the image MAKUKU (MAKUKU word written in mandombe script) 


Is there any tutorial to create such a filter?


Thanks in advance for your time,


@+

rv.

Average of ratings: -
In reply to Ngouoni-Épigat NDOGUÉFOUBA

Re: How to add my own filter?

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Another way you could do this, is using the Generico filter and Generico Atto plugin. This is a generic filter system using templates. So you would write a template in Javascript, html and CSS and Generico would run it as a filter. And display a button for it on the Atto editor. 

There are examples of templates here: 

https://moodle.org/plugins/browse.php?list=category&id=69