|
|
@ -118,7 +118,7 @@ const insertSuggestion = (state, position, token, completion) => { |
|
|
|
}; |
|
|
|
|
|
|
|
const insertEmoji = (state, position, emojiData) => { |
|
|
|
const emoji = String.fromCodePoint(parseInt(emojiData.unicode, 16)); |
|
|
|
const emoji = emojiData.unicode.split('-').map(code => String.fromCodePoint(parseInt(code, 16))).join(''); |
|
|
|
|
|
|
|
return state.withMutations(map => { |
|
|
|
map.update('text', oldText => `${oldText.slice(0, position)}${emoji} ${oldText.slice(position)}`); |
|
|
|