mervick / emojionearea

Emoji Picker Plugin for jQuery
https://jsfiddle.net/mervick/1v03Lqnu/765/
MIT License
953 stars 257 forks source link

Broken emoji conversion in contenteditable #412

Open AdrianKuriata opened 4 years ago

AdrianKuriata commented 4 years ago

Description: Hello, I found a bug from 3.4.0 version plugin. In previous versions everything works fine. When you initialize emojiarea and write :asterisk: and click anywhere out of field, unicode for this emoji will be broken, it will generate something like that: *[]. And this will be saved to form field. Check jsfiddle to see a problem. You can inspect field or check log container. This is not a problem with all emojis, but asterisk emoji not working for sure.

Instruction:

  1. Add :asterisk: emoji :asterisk:.
  2. Click somewhere out of field.
  3. Focus on field and write somethig.
  4. Check log getText() value.

Information: Jquery: any EmojioneArea: +3.4.0 jsfiddle: https://jsfiddle.net/s1tc3w4q/3/

413