Disappearing text box in course presentation
Hi there!
I can see that this bug has been reported before, but I don't know if the original reporter followed up with the additional information requested.
The problem occurs when creating H5P Course presentation content on Moodle.
On some (actually most) slides, I am not able to edit text content. When I create a new text item, I am able to enter some content, but either when pressing return, or when clicking 'Done' and reopening to edit, the 'Text' editing box collapses and doesn't allow me to edit the content.
When I click in the 'Comments' box, the 'Text' box and its contents become visible again, only to frustratingly disappear when trying to return to 'Text' to edit it.
At the moment, this is rendering the 'Course presentation' content type basically unusable.
I'm experiencing this on Moodle 4.0.4 running on Moodlecloud with H5P Framework v1.24. Working in Brave (Chromium 107) on Mac (Intel).
There is no console error message that I can see in developer tools and, although the bug is intermittent, I can reliably reproduce it by cloning a slide twice.
I hope this information helps to solve this bug in what is otherwise an excellent tool. It's a shame not to be able to use it due to this, but I keep losing work.
Many thanks,
Fraser
otacke
Sat, 11/26/2022 - 15:44
Permalink
Hi all!This is most likely
Hi all!
This is most likely not strictly a bug in H5P, but in the CKEditor 4.17.1 that is used by H5P. CKEditor is setting the height of the page element to 0px. That, in turn is caused by the `CKEDITOR.tools.convertToPx` function and that function happens to have had multiple bugs [1, 2] that have been fixed in later versions. My best guess is that upgrading to a later version of CKEditor (at least 4.19.1 seems advisable) will fix that problem.
However: Other H5P integrations are using H5P core that provides CKEditor 4.17.1 as well, and those do not suffer from this problem, so it could be something else.
@BV If you create a ticket ...
Cheers,
Oliver
frmcf
Sun, 11/27/2022 - 15:36
Permalink
Hi Oliver! Many thanks for
Hi Oliver! Many thanks for taking the time to reply. I'll lean on my Moodle provider to upgrade the version of CKEditor that they're using.
:)
otacke
Mon, 11/28/2022 - 15:06
Permalink
Hi!H5P provides its own
Hi!
H5P provides its own version of CKEditior. I am not aware whether moodle provides its own, if yes, whether that version overrides the version provided by H5P, etc.
Cheers,
Oliver
stephanfreysen
Wed, 07/12/2023 - 10:53
Permalink
FIX for this
Hi
You can fix this by adding the following CSS to your Moodle site. The 200px is just a suggestion, you can make it whatever will work for you:
.cke_contents {
/* background-color: #fff; */
min-height: 200px;
}
Kind regards,