# new EmojiButtonTrigger()
Methods
# attachEditor(codeMirror)
Appends emoji picker button to codeMirror
Parameters:
Name | Type | Description |
---|---|---|
codeMirror |
active codeMirror editor instance |
# insertEmoji(emoji)
Insert emoji into input or codeMirror depending on the context in the DOM To be called only by the Picker library in the "emoji" event callback
Parameters:
Name | Type | Description |
---|---|---|
emoji |
string | active codeMirror editor instance |