Moodle
  1. Moodle
  2. MDL-15220

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

    Details

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

      Description

      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.

        Issue Links

          Activity

          Hide
          Tim Hunt added a comment -

          This is not really a quiz issue.

          Some web browsers, e.g. Safari, have this feature.

          I don't know if the new HTML editor in Moodle 2.0 (TinyMCE) handles this better.

          Show
          Tim Hunt added a comment - This is not really a quiz issue. Some web browsers, e.g. Safari, have this feature. I don't know if the new HTML editor in Moodle 2.0 (TinyMCE) handles this better.

            People

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

              Dates

              • Created:
                Updated: