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
Describe the solution you'd like
An emoji picker that works similar to the one in Notion:
Main requirements:
[ ] Easy to update with new emojis, possibly use a library like https://www.npmjs.com/package/emoji-mart, https://www.npmjs.com/package/react-input-emoji, or different
[ ] As seen in the gif above, the focus should remain on the editor, while the user filters. Perhaps it needs to be implemented as a custom suggestion menu, but that currently doesn't have support for keyboard nav to left / right, so that would need to be added. It might be necessary to create your own version of SuggestionMenuController for this (and share common code nicely)
[ ] Should be accessible (both keyboard navigation and screen reader support would be ideal)
[ ] Component should be selectable both via the slash menu, and when the user types a trigger character (:)
This will require to get up to speed with the codebase and understand how suggestions work internally, so I don't recommend this issue for beginners
/attempt #808 @YousefED I am thinking of using emoji-mart as it is best suited for this and creating an element named AccessibleSuggestionMenuController which will use the useSuggestionMenuKeyboardNavigation hook for adding keyboard navigation. can you confirm that this will be alright or should i attempt it some other way. Thanks.
Edit: and i am creating a new file in packages/core/src/extensions/SuggestionMenu named getDefaultEmojiMenuItems.ts where i will get the emojis from the emoji-mart return them.
/attempt #808
hey @YousefED 👋 , It's been almost 2 weeks. Meanwhile I've been looking into it and have almost reached an optimal working solution. I'm in a position of creating a pull request today Inshallah, can I please get assigned so I can proceed with the pull request ?
@syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week
I am working on it, trying to integrate emoji-mart picker as it has all the functionality we need. If that is not possible then i will have to create the picker myself which means alot of more code to maintain.
@syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week
I am working on it, trying to integrate emoji-mart picker as it has all the functionality we need. If that is not possible then i will have to create the picker myself which means alot of more code to maintain.
@hunxjunedo if you have a working fix create a pr till tonight.
@YousefED I'm going with that, you okay with this ? Coming back in abt 12 hours.
Should I create a PR even if the issue is still assigned to someone else ?
@hunxjunedo if you have a working fix create a pr till tonight.
@YousefED I'm going with that, you okay with this ? Coming back in abt 12 hours. Should I create a PR even if the issue is still assigned to someone else ?
I will restart working on it at night so if you already have a working solution you can raise a pr.
We have an emoji-mart based tiptap plugin we built that we are now using in blocknote, works as is in blocknote. We've just added a blocknote sidemenu button helper component.
Features:
It has the emoji picker on typing : (which honours the skin colour) This utilises the frequently used feature of emoji-mart to prioritise the list shown, so before you type any search chars after the : you get you frequent items.
We listed them long ways with the shorcodes and shorthand so you could start to learn the codes over time
It has full the emoji-mart picker so you chen you can change skin theme settings, see the recent used etc. Open this menu by adding the smile icon to side menu or slash menu
It has a text input rule to pick up when emojis are just typed shothand not with shortcodes eg :-) and will automatiucllay turn them into emojis after hitting space while typing.
Activity
YousefED commentedon Jun 5, 2024
/bounty 100
algora-pbc commentedon Jun 5, 2024
💎 $100 bounty • BlockNote
Steps to solve:
/attempt #808with your implementation plan/claim #808in the PR body to claim the bountyThank you for contributing to TypeCellOS/BlockNote!
Add a bounty • Share on socials
Bhavyajain21 commentedon Jun 5, 2024
Please assign @YousefED
Bhavyajain21 commentedon Jun 5, 2024
/attempt
JavaScript & more
syedbarimanjan commentedon Jun 5, 2024
/attempt #808
@YousefED I am thinking of using emoji-mart as it is best suited for this and creating an element named AccessibleSuggestionMenuController which will use the useSuggestionMenuKeyboardNavigation hook for adding keyboard navigation. can you confirm that this will be alright or should i attempt it some other way. Thanks.
Edit: and i am creating a new file in packages/core/src/extensions/SuggestionMenu named getDefaultEmojiMenuItems.ts where i will get the emojis from the emoji-mart return them.
ps: can i get assigned.
JavaScript
syedbarimanjan commentedon Jun 7, 2024
I implemented it and then suddenly got a better idea on how to do it so it wil take some more time.
hunxjunedo commentedon Jun 17, 2024
/attempt #808
hey @YousefED 👋 , It's been almost 2 weeks. Meanwhile I've been looking into it and have almost reached an optimal working solution. I'm in a position of creating a pull request today Inshallah, can I please get assigned so I can proceed with the pull request ?
YousefED commentedon Jun 18, 2024
@syedbarimanjan any update on this? Otherwise I'll assign another attempt later this week
syedbarimanjan commentedon Jun 19, 2024
I am working on it, trying to integrate emoji-mart picker as it has all the functionality we need. If that is not possible then i will have to create the picker myself which means alot of more code to maintain.
YousefED commentedon Jun 19, 2024
Alright, thanks for the update!
syedbarimanjan commentedon Jun 19, 2024
@hunxjunedo if you have a working fix create a pr till tonight.
hunxjunedo commentedon Jun 19, 2024
@YousefED I'm going with that, you okay with this ? Coming back in abt 12 hours.
Should I create a PR even if the issue is still assigned to someone else ?
syedbarimanjan commentedon Jun 19, 2024
I will restart working on it at night so if you already have a working solution you can raise a pr.
hunxjunedo commentedon Jun 19, 2024
@YousefED I've implemented it and prepared to raise the pull request. Should I proceed or wait till I get assigned ?
Screencast.from.19-06-2024.20.11.04.webm
YousefED commentedon Jun 19, 2024
hunxjunedo commentedon Jun 19, 2024
Alright, doing it as soon as I get to a computer.
algora-pbc commentedon Jun 20, 2024
💡 @hunxjunedo submitted a pull request that claims the bounty. You can visit your bounty board to reward.
hunxjunedo commentedon Jun 20, 2024
@YousefED I've raised a PR, kindly review it.
fridaystreet commentedon Jun 21, 2024
We have an emoji-mart based tiptap plugin we built that we are now using in blocknote, works as is in blocknote. We've just added a blocknote sidemenu button helper component.
Features:
We listed them long ways with the shorcodes and shorthand so you could start to learn the codes over time
ayush-oswal commentedon Jun 26, 2024
Hey @YousefED is this still open?
algora-pbc commentedon Jul 17, 2024
🎉🎈 @hunxjunedo has been awarded $100! 🎈🎊