Hi,
We are about to upgrade all our servers to Moodle 4.1 and have been testing new features. We are using H5P core activities.
My question is, we have noticed that when embedding a H5P Content Bank activity directly into another Moodle resource using the TinyMCE 6 editor button (eg book, page) there is no possibility of tracking attempts students have made. Is it correct to say that an activity (container) must be set up on the main course page for attempt tracking and review via the gradebook?
The embed code from an activity also does not seem to work, nor does the H5P filter, which leaves using auto linking, meaning students potentially need to navigate away from their work.
Thank you for your help/clarification!
Hi Veronika, I have just tested on my Moodle 4.1 installation - where I have used the embed code rather than the TinyMCE button, and with that the grade is being recorded in the grade book. I did create a video on how to do this a couple of years ago - https://davefoord.wordpress.com/2021/11/05/moodle-tricks-of-the-trade-embedding-h5p-activities-into-other-moodle-areas/ if this helps (it shows both the old and new type of H5p)
One thing to note with H5p is that unlike the Moodle quiz (which can be set to store the highest score), H5p will only ever store the last attempt, so if someone completes an H5p quiz with a pass score, but then reattempts the quiz (which would happen by just opening it) - it would then override the previous score with another score (often a 0% if the user doesn't actually do the quiz) - so personally I only use H5p in situations where the actual grade isn't important.
One thing to note with H5p is that unlike the Moodle quiz (which can be set to store the highest score), H5p will only ever store the last attempt, so if someone completes an H5p quiz with a pass score, but then reattempts the quiz (which would happen by just opening it) - it would then override the previous score with another score (often a 0% if the user doesn't actually do the quiz) - so personally I only use H5p in situations where the actual grade isn't important.
Hi Dave,
Thank you so much for your response and video.
My question was more specifically about the TinyMCE 6 editor (image below) which does not seem to accept the embed code in the source code editor. From what I understand, the TinyMCE is now a legacy editor and will eventually be replaced by TinyMCE 6 in later Moodle versions. We were hoping to make this the default editor now with the next upgrade. Have you also used this newer version or are their known improvements yet to come that we have missed?

Thank you so much for your response and video.
My question was more specifically about the TinyMCE 6 editor (image below) which does not seem to accept the embed code in the source code editor. From what I understand, the TinyMCE is now a legacy editor and will eventually be replaced by TinyMCE 6 in later Moodle versions. We were hoping to make this the default editor now with the next upgrade. Have you also used this newer version or are their known improvements yet to come that we have missed?

Hi Veronika - you are absolutely correct, this isn't initially working with the new TinyMCE Editor (I have reverted back to the legacy TinyMCE editor - where this does still work easily).
However, I have worked out how to do this:
Copy the embed code as before, and add this into the html source area (which in new TinyMCE editor) is under the 'View' heading. What the embed code does is it initially adds the content with a height of 0 but there is then some javascript which resizes this. The new editor appears to be stripping out the javascript, but leaving the height as zero.
So - come out of HTML editor, and then go back into it (this re-arranges the embed code you added)
Somewhere in the code, you will see the following text, if you delete this and then save, it appears to work, and testing it, the results are appearing in the gradebook.
style="height: 0px;"
When I get some time, I will re-record a video for this.
However, I have worked out how to do this:
Copy the embed code as before, and add this into the html source area (which in new TinyMCE editor) is under the 'View' heading. What the embed code does is it initially adds the content with a height of 0 but there is then some javascript which resizes this. The new editor appears to be stripping out the javascript, but leaving the height as zero.
So - come out of HTML editor, and then go back into it (this re-arranges the embed code you added)
Somewhere in the code, you will see the following text, if you delete this and then save, it appears to work, and testing it, the results are appearing in the gradebook.
style="height: 0px;"
When I get some time, I will re-record a video for this.
Hi Dave - just wanted to say thanks again. We had a play with this today and had success. We did find that the H5P activity was not resized well, so also deleted the width specification, leaving just the height, which seemed to work consistently.
ie deleted:
• width="1060"
• style="height: 0px;"
ie deleted:
• width="1060"
• style="height: 0px;"
Hi Veronika,
I'm running Moodle version 4.3 with TinyMCE which is the default text editor now (since Moodle 4.2). I have no problem inserting an H5P content using the TinyMCE toolbar.
Could you possibly update your Moodle site to 4.3 (the current stable version) or at least 4.2; which would solve your problem?