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

Clear undo history when setting code editor contents #5264

Open
wants to merge 1 commit into
base: 1.0-develop
Choose a base branch
from

Conversation

danny6167
Copy link
Member

This change clears the undo history after setting the codemirror components text content.
This prevents undo from resetting the state to before the initial content was loaded in.

Fixes #5263

Clears the undo history when setting the editors initialContent to prevent undo from resetting the editor to empty state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undo can reset code editor to blank contents
1 participant