Added emoji support for composer

• Added:
- emoji support for composer
- new emoji sheet

• Updated:
- Textarea to accomodate
- Reducers and actions to retrieve caretPosition on text change when typing

• Removed:
- Unused input type on AutosuggestTextbox
- Old emoji sheet.png
This commit is contained in:
mgabdev
2020-06-05 21:43:08 -04:00
parent 85ec3060d9
commit 91a227913a
8 changed files with 65 additions and 90 deletions

View File

@@ -35,7 +35,7 @@ const messages = defineMessages({
const assetHost = process.env.CDN_HOST || ''
let EmojiPicker, Emoji // load asynchronously
const backgroundImageFn = () => `${assetHost}/emoji/sheet.png`
const backgroundImageFn = () => `${assetHost}/emoji/sheet_1.png`
const listenerOptions = detectPassiveEvents.hasSupport ? { passive: true } : false
const perLine = 8
@@ -223,7 +223,7 @@ const mapDispatchToProps = (dispatch) => ({
onPickEmoji: (emoji) => {
dispatch(useEmoji(emoji))
dispatch(insertEmojiCompose(0, emoji, false))
dispatch(insertEmojiCompose(emoji, false))
},
})