This library uses components of the "regular" H5P libraries to display the
editor and the player. For this purpose, the JavaScript and CSS files that make
up the JavasScript client (which is run in the browser) are copied over from
Joubel's PHP implementation upon npm install
.
As newer content type versions typically as require a new core version, we need to regularly update the references to the core files.
scripts/install.sh
to download the new H5P versions
from GitHubcoreApiVersion
(put in the version H5P now uses in the downloaded core
files; typically the version of h5p-editor-php-library without patch
version, e.g. 1.24)h5pVersion
(put in the version of the PHP libraries themselves (includes
patch version, e.g.: 1.24.1))H5PPlayer.coreScripts()
or
H5PEditor.coreScripts()
methods in the respective files.npx ts-node packages/h5p-server/scripts/generate-supported-language-list.ts
to update
the list of languages the editor supports.