jmadler / emoji-picker

Add a slick emoji selector to input fields and textareas on your website.
Other
1.31k stars 318 forks source link

No support... Great #107

Open zoxee opened 6 years ago

zoxee commented 6 years ago

Hey there. I am currently trying to build a social platform in PHP.

The modal form used to posting messages lives in its own popForm.php file and had originally a textarea that i replaced with the third one on your demo. Also added jQuery, CSS and JS to that php file. So far so good. Emo table shows where it is supposed to be and emoticons are displayed correctly inside of the input textarea. Posting also works flawlessly.

Now here are my 2 problems:

  1. popupForm is an AJAX form. When i type in the original textarea, a function that i wrote displays 5 hashtags or @handles of other members as i type. But once in use the new textarea, it seems that your jQuery function

    window.emojiPicker.discover();

stops these funtions from working completely

  1. Emoticons are not displayed correctly in posts

This is how emos are stored in the database 🐸🐸🐸🐸❤️❤️❤️ And when displayed in a div, i get only this 🐸🐸🐸🐸❤️❤️❤️ 

So please, as many other people have the same problem, can you please eventually come around and give us a definitive and workable solution ? Thanks in advance. snap63 snap64 snap65

zoxee commented 6 years ago

Correction: "And when displayed in a div, i get only squares"

zoxee commented 6 years ago

snap66

nikuscs commented 6 years ago

Please make sure your database supports uft8_mb4 encoding to save the Emojis correctly, also make sure you are getting the emojis correctly, your issue seems to be more encoding then the plugin itself. I'm using the plugin just fine and it works perfectly, you are probably just not implementing it correctly.

Also make sure this is a free plugin if you wish support , pay for it :D