BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

request suggestion menu mentions to support CompositionEvent for chinese input

Open ClytzeL opened this issue 1 year ago β€’ 13 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Will you could support suggestion menu mentions with chinese search,ref: https://developer.mozilla.org/zh-CN/docs/Web/API/CompositionEvent

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

Bonus [ ] I'm a sponsor and would appreciate if you could look into this sooner than later πŸ’–

ClytzeL avatar Nov 28 '24 02:11 ClytzeL

Thanks for the report. The change would probably need to be made in this file: https://github.com/TypeCellOS/BlockNote/blob/main/packages/core/src/extensions/SuggestionMenu/SuggestionPlugin.ts

This (from a different project) might be a helpful pointer: https://github.com/ueberdosis/tiptap/commit/9789372cea901b21059d53c30ff301efb35fb720

/bounty 10

YousefED avatar Nov 28 '24 09:11 YousefED

πŸ’Ž $10 bounty β€’ BlockNote

Steps to solve:

  1. Start working: Comment /attempt #1283 with your implementation plan
  2. Submit work: Create a pull request including /claim #1283 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to TypeCellOS/BlockNote!

Add a bounty β€’ Share on socials

Attempt Started (GMT+0) Solution
πŸ”΄ @Anshgrover23 Nov 28, 2024, 9:49:12 AM WIP
🟒 @mehul-m-prajapati Nov 29, 2024, 8:16:29 PM WIP
🟒 @Recxsmacx Feb 24, 2025, 6:54:35 AM WIP
🟒 @ClytzeL #1295

algora-pbc[bot] avatar Nov 28 '24 09:11 algora-pbc[bot]

@YousefED can you please assign this one ? Let me have a look

hunxjunedo avatar Nov 28 '24 09:11 hunxjunedo

/attempt #1283

Options

mehul-m-prajapati avatar Nov 29 '24 20:11 mehul-m-prajapati

@ClytzeL can you see if this fixes it? https://github.com/TypeCellOS/BlockNote/pull/1292#issuecomment-2508583277

YousefED avatar Nov 29 '24 20:11 YousefED

@ClytzeL can you see if this fixes it? #1292 (comment)

@YousefED @mehul-m-prajapati Thanks for support.There is still a little problem.I had already comment in the commit.Thanks again!

By the way,I would like to ask how to debug the @blocknote/core package in my project. Since the @blocknote/react package internally depends on a fixed version of @blocknote/core, I cannot change the version of @blocknote/core by only modifying it. My project uses Turbo + pnpm. Thank you for your help.

ClytzeL avatar Dec 02 '24 02:12 ClytzeL

@ClytzeL : I have updated the code as per the review comment. Please test again and let me know if it works now.

mehul-m-prajapati avatar Dec 02 '24 02:12 mehul-m-prajapati

@ClytzeL : I have updated the code as per the review comment. Please test again and let me know if it works now.

@mehul-m-prajapati Thanks for support.Would you show me how to test this #1292 before npm publish?

ClytzeL avatar Dec 02 '24 02:12 ClytzeL

@ClytzeL : I have updated the code as per the review comment. Please test again and let me know if it works now.

@mehul-m-prajapati Thanks for support.Would you show me how to test this #1292 before npm publish?

I don't know how to test it before npm publish. @YousefED : Can you please help on this?

mehul-m-prajapati avatar Dec 02 '24 02:12 mehul-m-prajapati

@mehul-m-prajapati Wlould you test on this preview link:https://blocknote-git-fork-mehul-m-prajapati-compositio-59cce9-typecell.vercel.app/custom-schema/suggestion-menus-mentions

Maybe this commit has regression.When I input @st,I can not filter steve in the list.Thanks for support.

ClytzeL avatar Dec 02 '24 03:12 ClytzeL

πŸ’‘ @ClytzeL submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] avatar Dec 02 '24 05:12 algora-pbc[bot]

#1295 I have tested this in my project.fix safari selection change case suggestion close when in composition event.

ClytzeL avatar Dec 02 '24 05:12 ClytzeL

/attempt #1283

Options

Recxsmacx avatar Feb 24 '25 06:02 Recxsmacx