NOBUG: Fixed SVG browser compatibility
[moodle.git] / h5p / h5plib / v124 / joubel / editor / readme_moodle.txt
blob061402f1e6d8c16276ced5b808083a30809453c2
1 H5P Editor PHP Library
2 ----------------------
4 Downloaded last release from: https://github.com/h5p/h5p-editor-php-library/releases
6 Import procedure:
7  * Remove the content in this folder (but the readme_moodle.txt)
8  * Copy all the files from the folder repository in this directory.
10 Removed:
11  * composer.json
12  * .gitignore
13  * ckeditor/skins/bootstrapck/sample
15 Changed:
16  * In the method ns.LibrarySelector.prototype.appendTo (scripts/h5peditor-library-selector.js),
17    comment the line "this.$selector.appendTo($element);" to avoid the display of the Hub Selector.
18  * Review strings in joubel/editor/language/en.js and compare them with
19    existing ones in lang/en/h5plib_vXXX.php: add the new ones and remove the
20    unexisting ones. Remember to use the AMOS script commands, such CPY, to copy
21    all the existing strings from the previous version. As you'll see, all the
22    strings in en.js have been converted following these rules:
23      - Prefix  "editor:" has been added.
24      - Keys have been lowercased.
25    Attention: When upgrading to 1.22.4, most of the new strings haven't been added to the lang file
26    because they are related to the H5P Hub which is not currently supported by Moodle.
27  * Add namespace to this library to avoid collision. It means:
28      - Add the "namespace Moodle;" line at the top of all the h5peditor*.php files in the root folder.
29      - Replace \H5Pxxx uses to H5Pxxx (for instance, in h5peditor-ajax.class.php there are several references to \H5PCore that
30        must be replaced with H5PCore).
31  * Add "use stdClass;" in h5peditor.class.php and h5peditor-file.class.php (check that it's still used before replacing it when
32    upgrading the library).
33  * Edit language/en.js and remove the content for 'filters' (it's a JSON with several fields, such as level or language).