Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15220

Alert user when hitting browser's Back button while in essay textarea with HTML editor


    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: HTML Editor (TinyMCE)
    • Labels:
    • Affected Branches:


      In quite a number of cases students hit the Back button or Backspace key incidentally while taking final semester quizzes. They are taken to a previous page, we tell them to go forward one page to get back to the quiz, after which most of their answers are preserved and can be submitted. The essay questions are different in that they use the HTML editor, therefore going forward to the quiz page again loads the editor again and all the user has written so far in the essay question textarea is lost.

      Two features could perhaps be added to help prevent this:
      B. When in the essay question field, hitting Back button/Backspace key would trigger an alert: Do you really want to abandon this question and lose everything you have written so far? (similar, e.g., to Gmail alert when composing a new email and trying to get one page back);
      B. An autosave mechanism would save the content typed into the essay questions fields, so that going back and forward would preserve the input.

      Feature A seems easier to implement, B would be more comfortable.

        Gliffy Diagrams


            Issue Links



                • Votes:
                  1 Vote for this issue
                  0 Start watching this issue


                  • Created: