cerpus / Edlib

Edlib is an application for creating, sharing, storing and using rich interactive learning resources.
https://docs.edlib.com
GNU General Public License v3.0
40 stars 7 forks source link

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

Closed chrieinv closed 4 months ago

chrieinv commented 4 months ago

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