Skip to content
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

Issue with Grammarly Integration - Undo Function Groups Multiple Edits #5587

Open
jurnalanas opened this issue Jan 8, 2024 · 0 comments
Open
Labels

Comments

@jurnalanas
Copy link

Description

I've encountered a consistent issue with Slate.js when using the Grammarly extension. When Grammarly is used to make edits on a Slate.js editor, multiple suggestions accepted across different parts of the text are grouped into a single action in the undo (Ctrl+Z) stack.

This results in multiple, distinct edits being undone in one step, affecting the editing experience.

Recording

CleanShot.2024-01-08.at.11.31.24.mp4

Steps to Reproduce:

  • Open a Slate.js editor (can be replicated using the Slate.js examples).
  • Ensure Grammarly browser extension is active.
  • Type in text with various errors to prompt Grammarly corrections.
  • Accept multiple Grammarly suggestions across different sections of the editor.
  • Use Ctrl+Z to undo the changes.
  • Observe that multiple Grammarly edits are undone in a single step.

Expectation

Each accepted Grammarly suggestion should be treated as an individual edit in the undo history, allowing for granular control over the undo function.

Environment

  • Slate Version: 0.94.0
  • Operating System: macOS
  • Browser: Chrome
@jurnalanas jurnalanas added the bug label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant