H5P styles: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
For more details, please see MDL-70759. | For more details, please see MDL-70759. | ||
[[Category:Moodle 3.9]] | |||
[[Category:H5P]] | [[Category:H5P]] | ||
Revision as of 15:34, 25 May 2021
Moodle 3.10
In Moodle 3.10 onwards, H5P content may be styled.
A renderer with 4 methods has been added to core_h5p:
- h5p_alter_styles and h5p_alter_scripts, to alter CSS and JS for the player and the editor.
- h5p_alter_semantics, to modify the fields displayed in the editor (for instance, change the order or remove some of the fields for some specific content-types). The approach for the existing alterLibrarySemantics method in h5p/classes/framework.php was not the expected (because it shouldn't be used to modify existing semantics; this is more about to change then on-the-fly).
- h5p_alter_filtered_parameters, for adapting the H5P content displayed in the player.
For more details, please see MDL-69087.
Backport to Moodle 3.9
This feature has been backported to Moodle 3.9.6 even it's not listed in the Moodle 3.9.6 release notes.
For more details, please see MDL-70759.