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

H5P button is not working in the new TinyMCE editor

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76276-master
    • Hide

      Initial setup

      1. Enable and use the new TinyMCE editor.
      2. Navigate to /admin/settings.php?section=filtersettingdisplayh5p.
      3. Add https://moodle.h5p.com/content/[id]" to the "Allowed sources".
      4. Click Save changes.
      5. Create a course.
      6. Create a forum.
      7. View the forum.

      Internal URL

      1. Ensure you are using localhost as the domain for your site, e.g $CFG->wwwroot = 'http://localhost/...';
      2. Navigate to the Content bank of the course.
      3. Upload the ipsums.h5p.
      4. View the forum.
      5. Click Add discussion topic button.
      6. Click Configure H5P content button.
      7. Click Browse repositories.
      8. Choose the file in the Content bank.
      9. Click the Insert H5P content button.
      10. Verify that you can insert the content normally.
      11. Verify that you will not see an Invalid URL error.
      12. Click Post to forum.
      13. View the Post.
      14. Verify that you can see the content of H5P.

      External URL

      1. View the forum.
      2. Click Add discussion topic button.
      3. Click Configure H5P content button.
      4. Set the H5P Url to: https://moodle.h5p.com/content/1290729733828858779
      5. Click the Insert H5P content button.
      6. Verify that you can insert the content normally.
      7. Verify that you will not see an Invalid URL error.
      8. Click Post to forum.
      9. View the Post.
      10. Verify that you can see the content of H5P.
      Show
      Initial setup Enable and use the new TinyMCE editor. Navigate to /admin/settings.php?section=filtersettingdisplayh5p. Add https://moodle.h5p.com/content/[id] " to the "Allowed sources". Click Save changes. Create a course. Create a forum. View the forum. Internal URL Ensure you are using localhost as the domain for your site, e.g $CFG->wwwroot = 'http://localhost/...'; Navigate to the Content bank of the course. Upload the ipsums.h5p . View the forum. Click Add discussion topic button. Click Configure H5P content button. Click Browse repositories. Choose the file in the Content bank. Click the Insert H5P content button. Verify that you can insert the content normally. Verify that you will not see an Invalid URL error. Click Post to forum. View the Post. Verify that you can see the content of H5P. External URL View the forum. Click Add discussion topic button. Click Configure H5P content button. Set the H5P Url to: https://moodle.h5p.com/content/1290729733828858779 Click the Insert H5P content button. Verify that you can insert the content normally. Verify that you will not see an Invalid URL error. Click Post to forum. View the Post. Verify that you can see the content of H5P.
    • 2
    • Team Hedgehog Sprint 1.1

      The root cause of this issue is the code is treating the Internal URL (Content bank) like the External URL and applying the validation.

      We just need to skip the validation for Internal URL, as we did in Atto editor

      The issue only happens if the site domain is config as same as wwwroot

      — Original —
      When trying to add H5P content using the H5P button in the new TinyMCE editor, the Invalid URL error is displayed when uploading a file or using any file in the Content bank repository:

       

      This is probably a regression of MDL-76012.

            huongn@moodle.com Huong Nguyen
            sarjona Sara Arjona (@sarjona)
            Stevani Andolo Stevani Andolo
            Paul Holden Paul Holden
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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