mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Add editor panel undo button #141

Open barnettwilliam opened 8 months ago

barnettwilliam commented 8 months ago

There is no undo button for editor panels. Feedback from the MDENet Symposium indicated that an undo button would be helpuful so that any changes made can be easily reverted and would reassure learners who are unfamiliar with the models/languages used when modifying the panel contents.

jgsuess commented 8 months ago

This requires command pattern and sessions, I am unsure if these are part of the implementation. You would need a framework that does this from the start.

agarciadom commented 8 months ago

This may just be part of the Ace editor or even the browser's basic functionality. If I just go to the Ace website and type something into their demo editor, I can then press Ctrl+Z for undo. I assume this functionality will be available through some browser/Ace editor API.

szschaler commented 8 months ago

Yes, ACE has an UndoManager that will make this trivial to add. It's just about making available existing functionality also through a button.