Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 800 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 800 Bytes

Archived

linagora.esn.emoticon

Adds Emoticon support into the OpenPaaS Enterprise Social Network. This module is part of https://open-paas.org/.

Usage: directive

The esn-emoticon directive replaces a text emoticon with an image.

<esn-emoticon emoticon='smiley'></esn-emoticon>

will be transformed to:

<img class="esn-emoticon-image" src="...emoticon path.../smiley.png" title='smiley'>

usage: filter

the esnEmoticonify filter will transform the emoticon "tags", such as 😃, to image tags.

<div ng-bind-html="message.text | esnEmoticonify:{class: 'emoji'}"></div>

This filter takes an argument (if present), that is the additional properties to put in the img tag.