Difference between revisions of "H5P styles"

From MoodleDocs
(info copied from MDL-69087, template, category)
 
(Update release notes reference)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Moodle 3.10}}
 
{{Moodle 3.10}}
 +
 
In Moodle 3.10 onwards, H5P content may be styled.
 
In Moodle 3.10 onwards, H5P content may be styled.
  
Line 10: Line 11:
 
For more details, please see MDL-69087.
 
For more details, please see MDL-69087.
  
 +
== Backport to Moodle 3.9 ==
 +
This feature has been backported to Moodle 3.9.6, as can be noticed in [[Moodle 3.9.6 release notes]].
 +
 +
For more details, please see MDL-70759.
 +
 +
[[Category:Moodle 3.9]]
 
[[Category:H5P]]
 
[[Category:H5P]]

Latest revision as of 15:53, 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, as can be noticed in Moodle 3.9.6 release notes.

For more details, please see MDL-70759.