Skip to content

Commit 06d5656

Browse files
authored
Merge pull request #22 from jmulet/develop
Version 1.3.0
2 parents 5fb8c3e + 3ecb781 commit 06d5656

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+396
-109
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,21 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
php: ['8.1']
34-
moodle-branch: ['MOODLE_401_STABLE', 'MOODLE_402_STABLE', 'MOODLE_403_STABLE', 'MOODLE_404_STABLE', 'MOODLE_405_STABLE']
33+
php: ['8.1', '8.2']
34+
moodle-branch: ['MOODLE_401_STABLE', 'MOODLE_402_STABLE', 'MOODLE_403_STABLE', 'MOODLE_404_STABLE', 'MOODLE_405_STABLE', 'MOODLE_500_STABLE']
3535
database: [mariadb]
36+
exclude:
37+
- php: '8.2'
38+
moodle-branch: 'MOODLE_401_STABLE'
39+
- php: '8.2'
40+
moodle-branch: 'MOODLE_402_STABLE'
41+
- php: '8.2'
42+
moodle-branch: 'MOODLE_403_STABLE'
43+
- php: '8.2'
44+
moodle-branch: 'MOODLE_404_STABLE'
45+
- php: '8.1'
46+
moodle-branch: 'MOODLE_500_STABLE'
47+
3648

3749
steps:
3850
- name: Check out repository code

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ Later, at any time, the component can be reconfigured using context menus provid
2424
- [Examples: Learn how to customize and create widgets.](docs/examples.md)
2525
- [Yaml API reference.](docs/api.md)
2626

27+
## Migration from Moodle 4x to Moodle 5.0
28+
29+
> [!IMPORTANT]
30+
> To ensure Bootstrap components that rely on JavaScript function correctly in both Moodle 4.x and Moodle 5.0, we recommend using both `data-xxx` and `data-bs-xxx` attributes in your widget templates. While this makes the templates slightly more verbose, it eliminates the need for custom JavaScript to handle attribute differences.
31+
32+
For widgets already present on a page, you can automatically add the missing `data-bs-xxx` attributes. Refer to the `oninit.refractor.bs5` configuration option below for details.
33+
2734
## Configuration
2835

2936
Administrators can manage widget definitions by customizing existing ones, creating new ones, or removing unwanted widgets. To access these options, simply type `widget` in the search field of the administrator area.
@@ -44,6 +51,10 @@ The options available are:
4451

4552
- *enable.contextmenu.level*: Enable (`1`) or disable (`0`) context menus used by the plugin.
4653

54+
- *category.order=misc:a1,deprecated:z1*: Overrides the default alphabetical category ordering. Provide a comma-separated string using the format `categoryName:sortingName`. The `sortingName` is used to determine the sort order among the listed categories. Categories not included in this list will maintain their default alphabetical order.
55+
56+
- *oninit.refractor.bs5=0* - Enable (`1`) or disable (`0`) automatic refractoring of Bootstrap 5 `data-bs-xxx` attributes when the editor opens (default: 0).
57+
4758
Feel free to share your widgets either by email `pep.mulet(at)gmail.com` or creating a pull request.
4859

4960
The capability 'tiny/widgethub:viewplugin' allows to set the plugin visibility for any role. Keep in mind that, by default, the role student is prevented from using the plugin.

amd/build/commands.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/commands.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)