-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Integration with Grammarly #449
Comments
I think Grammarly tries to manually edit the DOM state? That's probably going to cause issues with React if so, but I haven't investigated it at all personally. But we can see if others have experience and can chime in! |
Yep, seems like it. Did a little bit of digging around and found that Draft also has issues with Grammarly: facebookarchive/draft-js#616 cc: @kigorw (Grammarly dev) |
Thanks, we are thinking how to fit this issues into our roadmap. |
Thanks for the update @kigorw! In the meantime, I'll try to get to integrate @Soreine & @SamyPesse's Rousseau library with Slate as an alternative. @Soreine @SamyPesse, if you have already done it or plan to, do drop a note here since you both know those libraries the best! |
Going to close since there's nothing actionable here for now for Slate, but feel free to keep discussing grammar checkers! |
facebookarchive/draft-js#616, hopefully grammarly release a version that use |
@kigorw @blacktaxi Any updates on using Grammarly playing well with Slate? |
Hi @oyeanuj, Slate is definitely on our radar, but is not in our immediate plans to support. Nevertheless, I've just ran a quick test of the new Grammarly, and while underlining works fine, the text modification through |
Grammarly will cause CPU 100% on https://new-japanese-concise-tutorial-interactive-oezqwptftx.now.sh/ and not responding, on firefox and chrome. The source code of that site is https://github.com/linonetwo/new-japanese-concise-tutorial-interactive |
I am not sure about the CPU usage issue but I tried enabling Grammarly on my local build (slate-react #733) and with the latest version Grammarly changes are triggering the change event and things seem to be working fine. Am I missing something here? Also, @ianstormtaylor will it be possible to update the code in order to let users override the data-gramm flag if necessary. Under the current implementation, there is no way one can enable Grammarly at all. |
@nadeemshaik I've done a bit of testing - basically the "inline mode" works, but the "overlay mode" breaks Slate. I'm not sure why one works and the other doesn't since Grammarly is modifying the DOM directly in both cases. Possibly something to do with a difference in updating a text node vs the whole editor? ReprosInline mode - works as expected
Overlay mode - broken
E: Text is updated and continues to be editable. |
Hey @ianstormtaylor! Playing with Grammarly plugin alongside Slate, I am seeing issues where Grammarly extension is unable to update text in the editor. It is easily reproducible on the examples.
I haven't had the chance to investigate much further yet, but I wanted to create an issue incase anyone else here already knew what was going on..
The text was updated successfully, but these errors were encountered: