Skip to content

Commit 42c9ba1

Browse files
committed
Set Emoji to Unicode only
Set Emoji to Unicode only
1 parent 1aa9f1e commit 42c9ba1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

box/assets/js/kchat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ kbox.loademoji = (function(){
182182
}
183183
// to send msg on enter
184184
if (keyCode == 13) {
185-
msg = $(".emojionearea-editor").html();
186-
$(".emojionearea-editor").html('');
185+
msg = $(".kchatemoji").emojioneArea()[0].emojioneArea.getText();
187186
msg = msg.replace(/(?:\r\n|\r|\n)/g,'');
188187
msg = msg.replace(/<br\s*\/?>/gi,'');
189188
msg = msg.replace(/<div>/g, '');

kchat/assets/js/kchat.msgs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ $(".kchatemoji").emojioneArea({
331331
}
332332
// to send msg on enter
333333
if (keyCode == 13) {
334-
msg = $(".emojionearea-editor").html();
334+
msg = $(".kchatemoji").emojioneArea()[0].emojioneArea.getText();
335335
$(".emojionearea-editor").html('');
336336
msg = msg.replace(/(?:\r\n|\r|\n)/g,'');
337337
msg = msg.replace(/<br\s*\/?>/gi,'');

0 commit comments

Comments
 (0)