#101 - insert emoji from emoji selector

This commit is contained in:
jared 2019-03-29 15:56:50 -04:00
parent f9071dac25
commit 3172b4e7c1
4 changed files with 30 additions and 3 deletions

View file

@ -12,6 +12,11 @@ const EmojiSelector = {
methods: {
togglePanel () {
this.open = !this.open
},
onEmoji (emoji) {
const value = emoji.image_url ? `:${emoji.shortcode}:` : emoji.utf
this.$emit('emoji', ` ${value} `)
this.open = false
}
},
computed: {