Skip to content

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
Status: 🔖 Awaiting merge
Development

Successfully merging this pull request may close these issues.

Undo can reset code editor to blank contents
1 participant