-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CJK Input stuttering with dispatchTransaction
#41
Comments
I conducted tests on version "@nytimes/react-prosemirror": "^0.3.0", and the issue still persists.
|
You'll have to specifically use |
Darn, ok, thanks for the report! I'll take a look; it's possible that that version just doesn't have the latest code, because I did actually test with Japanese IME input specifically. Actually, the latest code is deployed here: https://nytimes.github.io/react-prosemirror/. If you have a moment, would you give that a shot, and if you run into issues, could you take a screen recording of what you're seeing? I did just confirm that I can insert Japanese characters with IME input on my computer/browser at least. |
Ah! I was able to reproduce this on Chrome; it seems to be a difference in how Chrome and Firefox handle... something! Not sure yet, but this is very helpful. I'll continue to dig into this; thank you for your assistance in pinpointing this! |
Oh great, that's good to know! Starting a new line is definitely its own edge case in this situation |
Based on the current test results, 1) if a new blank line is added by pressing Enter, the same error as mentioned above will occur, regardless of whether the IME is turned on or off, as long as there is input; 2) if a line break is made from the middle of the content in the second paragraph, creating a line with content, then no problem occurs. |
Is there going to be a new release coming soon? I've been using Tiptap, but I've found that it supports Vue better than React, and I'm using Next.js based on React. So, I've been looking for alternatives. If there's a new release, even a Beta version, could you provide a version for internal testing? |
That's the plan! But I can't make any promises about timing, unfortunately. We're still working out some significant high level decisions about the approach. |
Hey @saranrapjs, while you're at it: @ilyaGurevich took a stab at this a little while back but it seems like there are still issues with IME input in the main branch. I haven't sat down to try to think through this, but this seems to be another thing that works fine with NYT's custom implementation ("simple" node views) but isn't working here! |
I noticed that using the
README.md
example code:the CJK input in browser is stuttering.
Screencast.from.2023-06-26.02-37-59.webm
However, if I remove
dispatchTransaction
prop, i.e.it behaves normally:
Screencast.from.2023-06-26.02-38-52.webm
Any idea what is the source of problem?
The text was updated successfully, but these errors were encountered: