threema-ch / threema-web

The Threema Web application.
GNU Affero General Public License v3.0
1k stars 107 forks source link

Insert Emoji via Keyboard #1

Closed dbrgn closed 6 years ago

dbrgn commented 7 years ago

Convert emoji shortnames (e.g. :smile:) to emoji while typing.

jens-ox commented 7 years ago

Like Slack? I think https://github.com/needim/wdt-emoji-bundle/ comes pretty close - implementing auto-search while typing should not be too hard

dbrgn commented 7 years ago

Emojione already provides a function to convert shortnames to inline images: https://github.com/Ranks/emojione/blob/master/lib/js/emojione.js#L240-L275 It just needs to be integrated into the compose area directive.

fichtennadel commented 7 years ago

6 months later and still missing :-) to be replaced. Any timeline available for this?

dbrgn commented 7 years ago

:-) will never be replaced, but shortcodes like :smile: will. Implementing this is definitely still planned, it's just that some of the developer resources have been dedicated to develop the voip call feature lately. So it'll be added sooner or later :)

In case a developer is very eager to see this, pull requests are welcome! The goal is for the feature to work similarly to the way it's implemented on Github, just with the difference that emoji are replaced immediately when pressing enter and not just on send.