7a8f894c85
Content types view always expect to have a contentId when they are displayed. This is no the case if they are displayed in the editor as part of a preview. The fix is to set an empty object with definition for the xAPI event, so all the content types that rely on this does not have to be rewritten. This means that content types that are being previewed will send xAPI completed events, but since there are no scripts that catch these events in the editor, this is not a problem. |
||
---|---|---|
doc | ||
fonts | ||
images | ||
js | ||
styles | ||
.gitignore | ||
LICENSE.txt | ||
README.txt | ||
composer.json | ||
embed.php | ||
h5p-default-storage.class.php | ||
h5p-development.class.php | ||
h5p-event-base.class.php | ||
h5p-file-storage.interface.php | ||
h5p-metadata.class.php | ||
h5p.classes.php |
README.txt
This folder contains the general H5P library. The files within this folder are not specific to any framework. Any interaction with an LMS, CMS or other frameworks is done through interfaces. Platforms need to implement the H5PFrameworkInterface(in h5p.classes.php) and also do the following: - Provide a form for uploading H5P packages. - Place the uploaded H5P packages in a temporary directory +++ See existing implementations for details. For instance the Drupal H5P module located at drupal.org/project/h5p We will make available documentation and tutorials for creating platform integrations in the future. The H5P PHP library is GPL licensed due to GPL code being used for purifying HTML provided by authors.