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

Atto editor undo/redo (crtl-y/z) can sometimes wipe all content

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Open any HTML input field that uses the atto text editor (e.g. Edit profile page)
      2. Type "test"
      3. Click anywhere on the page (otherwise ctrl-z/-y don't work) then click again inside the text editor.
      4. Press Ctrl+y
      5. Confirm that the text does not get erased.
      6. Press Ctrl+z
      7. The text should get removed
      8. Press Ctrl+y
      9. Confirm that the text gets restored
      10. Press Ctrl+y again
      11. Confirm that the test does not get erased.
      Show
      Open any HTML input field that uses the atto text editor (e.g. Edit profile page) Type "test" Click anywhere on the page (otherwise ctrl-z/-y don't work) then click again inside the text editor. Press Ctrl+y Confirm that the text does not get erased. Press Ctrl+z The text should get removed Press Ctrl+y Confirm that the text gets restored Press Ctrl+y again Confirm that the test does not get erased.
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-60574_master

      Description

      Written text within the Atto text editor will be deleted when using a combination of Ctrl-z and Ctrl-y. We found this bug adding a topic to the news forum.

       

      Steps to reproduce:

      1. Type text in a text box

      2. Press Ctrl-z to undo

      3. Then press Ctrl-y repeatedly past the point where the last action is redone.

      4. All text in the text box is deleted

      5. Pressing Ctrl-z to undo does not bring back the text as expected

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tschroeder Tim Schroeder
              Reporter:
              lukmicsch Lukas Schmidt
              Peer reviewer:
              Ferran Recio Ferran Recio
              Integrator:
              Jun Pataleta Jun Pataleta
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              17 Vote for this issue
              Watchers:
              19 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Sep/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 20 minutes
                  1h 20m