File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,7 @@ kbox.loademoji = (function(){
182
182
}
183
183
// to send msg on enter
184
184
if ( keyCode == 13 ) {
185
- msg = $ ( ".emojionearea-editor" ) . html ( ) ;
186
- $ ( ".emojionearea-editor" ) . html ( '' ) ;
185
+ msg = $ ( ".kchatemoji" ) . emojioneArea ( ) [ 0 ] . emojioneArea . getText ( ) ;
187
186
msg = msg . replace ( / (?: \r \n | \r | \n ) / g, '' ) ;
188
187
msg = msg . replace ( / < b r \s * \/ ? > / gi, '' ) ;
189
188
msg = msg . replace ( / < d i v > / g, '' ) ;
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ $(".kchatemoji").emojioneArea({
331
331
}
332
332
// to send msg on enter
333
333
if ( keyCode == 13 ) {
334
- msg = $ ( ".emojionearea-editor " ) . html ( ) ;
334
+ msg = $ ( ".kchatemoji " ) . emojioneArea ( ) [ 0 ] . emojioneArea . getText ( ) ;
335
335
$ ( ".emojionearea-editor" ) . html ( '' ) ;
336
336
msg = msg . replace ( / (?: \r \n | \r | \n ) / g, '' ) ;
337
337
msg = msg . replace ( / < b r \s * \/ ? > / gi, '' ) ;
You can’t perform that action at this time.
0 commit comments