Closed Pok4 closed 2 years ago
I see other topics, but can you give me best alternative to this date?
Try using "input" instead. That'll cover keyup and paste events. Keypress isn't supported by all browsers.
There is a bug with "keypress" event (https://github.com/mervick/emojionearea/issues/30),
try to use "keyup", or attach "keypress" directly to input, e.g.
$("textarea[name=com_text]").emojioneArea({
events: {
ready: function() {
this.editor.on("keypress", function(event) {
console.log("press", event);
})
}
}
});
Thank you, guys :)
hello guys, im using version 3.1.8 and i do this:
its working correctly, but when change 'paste' to 'keypress' on last line, the code not works.. Why keypress event didn't work ?
PS: jquery version is 3.2.1