plate icon indicating copy to clipboard operation
plate copied to clipboard

Mention support input Chinese to search.

Open BBSQQ opened this issue 2 years ago • 5 comments

Description

https://plate.udecode.io/docs/plugins/mention

The input element is removed when Chinese is entered into the MentionInputElement for searching. If you can give me some ideas, I am also very willing to participate in contributing. 😄

2022-04-22 15-32-11 2022-04-22 15_33_39

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

BBSQQ avatar Apr 22 '22 07:04 BBSQQ

See https://github.com/udecode/plate/issues/1490 , you will probably unable to input any CJK.

linonetwo avatar Apr 23 '22 07:04 linonetwo

In general you cannot paste content into the mention search either (an issue we recently noticed separately), so there's definitely some work be done here.

dylans avatar Apr 24 '22 12:04 dylans

This is probably caused by the onKeydown/up event handling for CJK. Recently, I fixed a similar issue in my project using onKeyPressed event instead of onKeyDown/up.

woodpeng avatar Aug 10 '22 01:08 woodpeng

this issue still exists and it seems its priority is pretty low I have no idea how to fix it on my own currently, however, for those really need a mention support cjk input, it is possible to just use slate's mention example, and that could support cjk input without any issues. https://www.slatejs.org/examples/mentions

joshua7v avatar Oct 26 '23 07:10 joshua7v

@joshua7v Thanks for bringing this to my attention. This is also affecting my app. I'll take a look at this when I get a chance.

12joan avatar Oct 26 '23 08:10 12joan

This should be fixed in the latest version of Slate.

12joan avatar Feb 07 '24 11:02 12joan