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

Tiny image plugin doesn't correctly observe whether files can be uploaded

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-82181-404
    • Hide
      1. Log in as admin
      2. Open browser developer console
      3. Navigate to Users > Accounts > User profile fields in site administration
      4. Press Create a new profile field > Text area
      5. In the Description of the field field press the Image button
      6. Confirm there are no errors in browser console
      7. Confirm you see Insert image modal with Paste an image link in the field below. content
      8. Cancel/close editing modals
      9. Browse to your profile page
      10. Press Edit profile
      11. In the Description field press the Image button
      12. Confirm you see Insert image modal with Drag and drop an image to upload, or click to select content
      Show
      Log in as admin Open browser developer console Navigate to Users > Accounts > User profile fields in site administration Press Create a new profile field > Text area In the Description of the field field press the Image button Confirm there are no errors in browser console Confirm you see Insert image modal with Paste an image link in the field below. content Cancel/close editing modals Browse to your profile page Press Edit profile In the Description field press the Image button Confirm you see Insert image modal with Drag and drop an image to upload, or click to select content
    • 1
    • Team Hedgehog 2024 Sprint 2.2

      This is a regression from MDL-78096

      The bug here is that the editor isn't observing whether it's possible to add files to the editor, so when you click the Insert image button then nothing appears to happen, other than the following error in the browser console:

      14:14:40.974 Uncaught TypeError: options is undefined
          <anonymous> http://moodle.internal/master/lib/requirejs.php/1718198044/core/first.js:5118
          handleImageAction http://moodle.internal/master/lib/requirejs.php/1718198044/core/first.js:5108
          onToolbarButtonExecute http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:16700
          runWithApi http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:11318
          onToolbarButtonExecute http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:16698
          run http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:2191
          each$1 http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:232
          run http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:2190
          assemble http://moodle.internal/master/lib/editor/tiny/loader.php/1718198044/themes/silver/theme.js:2691
      first.js:5118:2704
      

      We've had similar with other Tiny plugins in the past, see MDL-79827

            pholden Paul Holden
            pholden Paul Holden
            Meirza Meirza
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m

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