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

Manage editor state when changing contents #148

Merged
merged 5 commits into from
Dec 11, 2023

Conversation

szschaler
Copy link
Contributor

@szschaler szschaler commented Dec 8, 2023

This PR introduces code to only save panels whose contents has actually been edited by the user. We do this by using the clean/dirty flag maintained by ACE's UndoManager class.

Closes #146

@szschaler szschaler self-assigned this Dec 8, 2023
@szschaler szschaler added the enhancement New feature or request label Dec 8, 2023
@szschaler szschaler marked this pull request as ready for review December 8, 2023 20:38
Copy link
Collaborator

@barnettwilliam barnettwilliam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good and prevents empty commits. It would be be nice to have visual feedback e.g. disable the save button and prevent undoing back to a blank panel but will raise separate issues for these.

@barnettwilliam barnettwilliam merged commit a547712 into main Dec 11, 2023
2 checks passed
@barnettwilliam barnettwilliam deleted the feature/only-save-dirty-panels branch December 11, 2023 11:28
barnettwilliam added a commit to mdenet/educationplatform-docker that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Avoid empty commits when saving
2 participants