plate
plate copied to clipboard
Mention support input Chinese to search.
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. 😄
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
See https://github.com/udecode/plate/issues/1490 , you will probably unable to input any CJK.
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.
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.
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 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.
This should be fixed in the latest version of Slate.