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

Tiny editor is still reloading old content (and console errors on save)

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76487-master
    • Hide

      MUST be tested in Firefox:

      1. Edit lib/editor/tiny/plugins/autosave/classes/external/reset_autosave_session.php in your editor
      2. Before the {{$manager = }} call on line 84, add a call:

        sleep(5);
        

      3. Login as admin
      4. Navigate to a course
      5. Turn editing on
      6. Add a new activity or resource
      7. Choose an activity (Forum)
      8. Fill in a name and description
      9. Press "Save and return to course"
      10. Add another new activity of the same time
        1. Confirm that the description was not filled from the autosave
      11. Open the forum you created in the first step
      12. Add a new discussion:
        1. Set the title
        2. Type into the content editor
      13. Without clicking out of the content editor first, go straight from typing some content to clicking on the "Post to forum" button
      14. Afer the page loads press the "Add discussion topic" button
        1. Confirm that the content was not filled from the autosave
      Show
      MUST be tested in Firefox: Edit lib/editor/tiny/plugins/autosave/classes/external/reset_autosave_session.php in your editor Before the {{$manager = }} call on line 84, add a call: sleep(5); Login as admin Navigate to a course Turn editing on Add a new activity or resource Choose an activity (Forum) Fill in a name and description Press "Save and return to course" Add another new activity of the same time Confirm that the description was not filled from the autosave Open the forum you created in the first step Add a new discussion: Set the title Type into the content editor Without clicking out of the content editor first, go straight from typing some content to clicking on the "Post to forum" button Afer the page loads press the "Add discussion topic" button Confirm that the content was not filled from the autosave

      This seems to be the same as originally reported in MDL-76327 - hopefully demonstrated better by the following screencast:

      Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
      

      Not sure caught in the screencast, but I also see this frequently:

      Uncaught (in promise) Unable to store autosave content - content has been reset first.js:4497:1072
          updateAutosaveSession http://moodle.internal/master/lib/requirejs.php/1669395511/core/first.js:4497
          saveDraft http://moodle.internal/master/lib/requirejs.php/1669395511/core/first.js:4481
          (Async: setTimeout handler)
          saveDraft http://moodle.internal/master/lib/requirejs.php/1669395511/core/first.js:4481
          undoHandler http://moodle.internal/master/lib/requirejs.php/1669395511/core/first.js:4463
          dispatch http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:28172
          dispatch http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:28288
          addUndoLevel$1 http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:17346
          add http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:17454
          addUndoLevel http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:17613
          add http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:20176
          addNonTypingUndoLevel http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:20078
          dispatch http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:28172
          dispatch http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:28288
          save http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:29089
          triggerSave http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:29548
          each$c http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:540
          triggerSave http://moodle.internal/master/lib/editor/tiny/loader.php/1669395511/tinymce.js:29547
          <anonymous> http://moodle.internal/master/user/editadvanced.php?id=2&course=1&returnto=profile:3196
          (Async: EventListener.handleEvent)
          <anonymous> http://moodle.internal/master/user/editadvanced.php?id=2&course=1&returnto=profile:3189
          execCb http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          check http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          enable http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          init http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          o http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          (Async: setTimeout handler)
          nextTick http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          o http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          requirejs http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          <anonymous> http://moodle.internal/master/user/editadvanced.php?id=2&course=1&returnto=profile:2963
          execCb http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          check http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          enable http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
          bind http://moodle.internal/master/lib/javascript.php/1669395511/lib/requirejs/require.min.js:5
      

        1. MDL-76487-test.jpg
          MDL-76487-test.jpg
          126 kB
        2. mod_data.mov
          33.94 MB
        3. Screencast 2022-11-25.gif
          Screencast 2022-11-25.gif
          2.47 MB
        4. Screen Recording 2022-11-26 at 4.07.42 pm.mov
          10.24 MB

            dobedobedoh Andrew Lyons
            pholden Paul Holden
            Jun Pataleta Jun Pataleta
            Ilya Tregubov Ilya Tregubov
            Ferran Recio Ferran Recio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 15 minutes
                5h 15m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.