Load H5P in the editor iframe as well, that way instanceof will work.
Imported some styles from 7.x-1.x