[APP-836] Emoji picker for web (#1254)
* add emoji-mart package for emoji dropdown picker * remove emoji picker modal * load emoji mart data not as part of the main bundle * remove @emoji-mart/data * setup emoji insertion with events * get emoji data from local static assets * close emoji picker after one emoji has been inserted * Switch emoji picker trigger to an icon * Update emoji-mart-data.js * make grabbing emoji data work on more browsers --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
This commit is contained in:
parent
8ab5eb6583
commit
6487a87542
10 changed files with 136 additions and 12 deletions
7
web/static/js/emoji-mart-data.js
Normal file
7
web/static/js/emoji-mart-data.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
async function grabEmojiData() {
|
||||
const response = await fetch('/static/emojis.2023.json')
|
||||
const emojiMartData = await response.json()
|
||||
window.emojiMartData = emojiMartData
|
||||
}
|
||||
|
||||
grabEmojiData()
|
Loading…
Add table
Add a link
Reference in a new issue