Project: moodle
Issue MDL-44831: Atto: Save to undo stack on text deletion
The undo stack save is triggered by arrow keys and clicks on the content area. This is based on testing the native undo in chrome. We could possibly improve this to save the position when someone starts deleting things (but if they hit delete 15 times we should only save for the first one). We could do this by detecting that the new text is shorter than the previous text, save the stack and set a "deleting" flag. We would need to test the performance of this with a really long bit of text in a sucky browser (guess which).
Story points: 8