[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:
@@ -0,0 +1,7 @@
|
||||
async function grabEmojiData() {
|
||||
const response = await fetch('/static/emojis.2023.json')
|
||||
const emojiMartData = await response.json()
|
||||
window.emojiMartData = emojiMartData
|
||||
}
|
||||
|
||||
grabEmojiData()
|
||||
Reference in New Issue
Block a user