H5P doesn't work with any toggle button plug in

 

  1. I create a question by H5P then use the shortcode to post. It's appears normaly but whenever I use any toggle plug in (ex Show-Hide/Collapse-Expand) and then the content of the shortcode wouldn't appear.
  2.  I use Wordpress.
  3. Desktop
  4. Browser: any
  5. H5P 1.15.0
  6. H5P Drag and drop

I'm a newbie in this area. Please forgive me if my question bother you. Thanks in advanve for your help.

otacke's picture

https://h5p.org/comment/19435#comment-19435

I've tried to insert the eventDispatch into the footer file and it didn't make any difference, I also tried to inroduce delay using setTimeout(), and also tried to insert the same code into the browser's console, so far no luck

Hi Otacke, thank you for your help, I tried the method mentioned in the post but so far no luck.

First I inserted the event dispatcher into the footer.

I also tried to introduce some delay with the setTimeout() function.

And I also tried the code through the browser's console.

Hi Otacke, thank you for your help, I tried the method mentioned in the post but so far no luck.

First I inserted the event dispatcher into the footer.

I also tried to introduce some delay with the setTimeout() function.

And I also tried the code through the browser's console.

Hi Otacke, thank you for your help, I tried the method mentioned in the post but so far no luck.

First I inserted the event dispatcher into the footer.

I also tried to introduce some delay with the setTimeout() function.

And I also tried the code through the browser's console.

otacke's picture

Hi hoangletuananh.86!

Then it might be something else. If you need one more thing to be sure: Try to resize the browser window manually after content is gone. This should trigger the iframe to resize and use the current size of the container.

Best,

Oliver