#101 - insert emoji from emoji selector
This commit is contained in:
parent
f9071dac25
commit
3172b4e7c1
4 changed files with 30 additions and 3 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue