You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to filter the emojis before I pass it to the Picker. Currently I'm calling it as follows:
import data from '@emoji-mart/data';
import Picker from '@emoji-mart/react';
<Picker
data={data}
locale='pl'
onEmojiSelect={(emoji: any) =>
editor.chain().focus().setEmoji(emoji.id).run()
}
/>
The problem is that I'd like to somehow filter data before I pass it, i.e. to exclude some icons. This is also because I'd like to use it in my RichText editor so I have to extract icon data from this data thing (I'm using Prosemirror & Tiptap). Currently I have no idea how to handle this data object
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to filter the emojis before I pass it to the Picker. Currently I'm calling it as follows:
The problem is that I'd like to somehow filter
data
before I pass it, i.e. to exclude some icons. This is also because I'd like to use it in my RichText editor so I have to extract icon data from thisdata
thing (I'm using Prosemirror & Tiptap). Currently I have no idea how to handle thisdata
objectBeta Was this translation helpful? Give feedback.
All reactions