Display emoticons as images
Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Display emoticons as images.
The filter Display emoticons as images converts emoticon (smiley) characters into images. In Moodle 1.x, this feature is integrated directly into text format processing functions.
Filter settingsSince Moodle 2.0, the site administrator has to enable the filter to convert emoticon characters like
:-)into images. In the filter settings, choose the input text formats where the filter should be applied. The default values are backward compatible with Moodle 1.x behaviour.
Inserting emoticons in HTML editor
:-). If the emoticon filter is enabled, a button Insert emoticon is available in TinyMCE HTML editor. It lets the user to insert the emoticon image from the popup menu.
Emoticon images inserted via the popup menu are automatically converted back into their text representation before the text is submitted to the server. And vice versa, all emoticons are automatically converted into images when the editor loads. This way, users using TinyMCE HTML editor can see emoticon images while users working with the plain web form field (textarea) can see the text representation of the smilies.