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

Suggestion: ACE UI remembers edit/undo history after page reload #204

Open
jimbonothing64 opened this issue Mar 6, 2024 · 0 comments
Open

Comments

@jimbonothing64
Copy link
Contributor

When a question answerer presses check, the page reloads, from the form submit, and the user loses their undo history. Question answerers should not lose their edit history when clicking check on, at minimum, the current question they are working on.

This is bad for beginner programmers who may forget which line they just changed. Being able to use ctrl+z after submitting code could help them to remember what they changed, and see what effect that had.

Proposed changes:

  • Update ace editor library for new API features.
  • Store the ace editor's session history in the browser's session storage, when clicking check (on sync event).
  • Load this session history iff the code is the same, when the ace editor loads.
    • Would need to use textareaid or similar as the key.
    • Possible memory issue if large code/lots of edits/questions, might be nice to only store the last question or last X questions editor history
@jimbonothing64 jimbonothing64 changed the title Suggestion: ACE UI remembers edt/undo history after page reload Suggestion: ACE UI remembers edit/undo history after page reload Mar 6, 2024
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

No branches or pull requests

1 participant