by Andreas Grabs.
Hi Geoffrey,
all filtered text is saved into mdl_cache_text. So your filter is not executed every time you want. It is just executed if the content is changed. That means your filter will not be able to get the information about editing is on or not.
Best regards
Andreas