Timeline not embedding Wordpress

Detailed steps to reproduce the bug (exactly how and when did it happen)

Installed H5P into my personal website which uses Wordpress 5.5.1. Created a timeline content in H5P plugin. Tested it in the hub, it worked fine. Clicked the <embed> button in lower left to get link. Copied link. Created a new page (also tried as new post, to see if designation mattered, it did not) and copied the embed link into the text block. Wordpress attempted to embed but resulted in "Sorry, this content could not be embedded." as output.


Platform and version number. E.g. Drupal, Wordpress, Moodle.

Wordpress 5.5.1

Desktop
Firefox
H5P plugin version 1.15
H5P content type and version (if a content type was used), and a sample URL or attached H5P.

Timeline 1.1.2


Any browser console errors

"Sorry, this content could not be embedded."


Any PHP errors

None

Screenshots if it's a visual problem - attached

Code output by embed button

<iframe src="http://nancyjcostumes.com/wp-admin/admin-ajax.php?action=h5p_embed&id=2" width="936" height="625" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="http://nancyjcostumes.com/wp-content/plugins/h5p/h5p-php-library/js/h5p-..." charset="UTF-8"></script>
otacke's picture

Hi Nancy!

I have no trouble accessing your content. The embed link posted here seems a little distorted with the a tags inside the src fiels, but that's probably due to pasting it here. You should get

<iframe src="http://nancyjcostumes.com/wp-admin/admin-ajax.php?action=h5p_embed&id=2" width="936" height="625" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="http://nancyjcostumes.com/wp-content/plugins/h5p/h5p-php-library/js/h5p-resizer.js" charset="UTF-8"></script>

from the embed button

Ary you possibly seeing any errors in the development console, potentially related to embedding a page that's not being transfered with encryption (you're using http) into a page that uses encryption? Browsers don't allow that for security reasons.

Best,
Oliver

Thanks for the help. It appears that wordpress visual editor was stripping out the necessary iframe code, so I finally found my way to the code editing view and it works now.