2016-07-24, 11:28 AM
Hi,
I have this piece of code which insers a specified emoji into a input field (text).
However, when you're typing something like: "Hello!" and then you click on a emoji, it replaces the whole text with just the emoji + it won't work with multiple emojis.
Here's a video:
https://u.pomf.is/lbyame.mp4
Thank you for reading.
I have this piece of code which insers a specified emoji into a input field (text).
jQuery("img.smilie").click(function () {
var emoji_value = jQuery(this).attr('data-emojiname');
$('#insert_emoji').val(''+emoji_value+'');
});
However, when you're typing something like: "Hello!" and then you click on a emoji, it replaces the whole text with just the emoji + it won't work with multiple emojis.
Here's a video:
https://u.pomf.is/lbyame.mp4
Thank you for reading.