Skip to content

H5P addons fails to load if having patch version in folder name#2709

Merged
chrieinv merged 1 commit intomasterfrom
h5p-addons-may-fail-to-load
Apr 12, 2024
Merged

H5P addons fails to load if having patch version in folder name#2709
chrieinv merged 1 commit intomasterfrom
h5p-addons-may-fail-to-load

Conversation

@chrieinv
Copy link
Contributor

The addons are loaded in the H5P Editor for content types that are hardcoded in H5P Editor,h5peditor.class.php, as having WYSIWYG editor, currently these are 'H5P.CoursePresentation', 'H5P.InteractiveVideo' and 'H5P.DragQuestion'. They are loaded for all libraries when viewing H5P.
Addons can be identified by checking if there is a addTo property in the H5P librarys library.json file. In the database this value is stored in the column h5p_libraries.add_to.
An example of an addon is the 'H5P.MathDisplay' library.
No documentation was found on the H5P.org site

@chrieinv chrieinv changed the title H5P addons fails to load if using patch version in folder name H5P addons fails to load if having patch version in folder name Apr 12, 2024
@chrieinv chrieinv requested a review from emmachughes April 12, 2024 08:46
@chrieinv chrieinv merged commit 883a9d7 into master Apr 12, 2024
@chrieinv chrieinv deleted the h5p-addons-may-fail-to-load branch April 12, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants