Commit graph

1503 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Shamim Rezaie
83bf7f3c5a Merge branch 'MDL-71719-master' of https://github.com/sarjona/moodle 2022-01-06 01:46:59 +11:00
Sara Arjona
fdfa1a9524 MDL-71718 lib: Set Moodle files after codemirror upgrade 2021-12-30 12:34:16 +01:00
Sara Arjona
8dc095e54e MDL-71718 lib: Upgrade codemirror to 5.65.0 2021-12-30 12:34:16 +01:00
Sara Arjona
5c2004def2 MDL-71719 lib: Set Moodle files after jsbeautify upgrade 2021-12-30 12:33:10 +01:00
Sara Arjona
eebf70d1e8 MDL-71719 lib: Upgrade jsbeautify to 1.14.0 2021-12-30 12:33:10 +01:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
57e6fb7ad9 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:02 +01:00
Andrew Nicols
600b049def MDL-71751 js: Do not stop propagation on drop, and handle it properly 2021-11-11 15:52:35 +07:00
Paul Holden
c544288555 MDL-72884 atto_image: improve svg support in editor dialogue.
Where the dimensions of an image are not present, we should use
sensible defaults so that the dialogue is still usable.
2021-10-21 23:58:27 +01:00
Sara Arjona
8c8dfed278 MDL-72720 tinymce: Implement enable_plugin() method 2021-10-15 13:00:04 +02:00
Bas Brands
d1b9f7d1f1 MDL-71965 theme_boost: move footer content in popover 2021-10-06 11:32:08 +02:00
Ilya Tregubov
85c1947840 Merge branch 'MDL-56773-master' of git://github.com/rezaies/moodle 2021-10-05 23:18:51 +02:00
Andrew Nicols
d7a67faf2f Merge branch 'MDL-72031-master' of https://github.com/NashTechOpenUniversity/moodle 2021-09-28 13:36:11 +08:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Jun Pataleta
fec5a40ddb Merge branch 'MDL-71671-master' of git://github.com/rezaies/moodle 2021-09-07 14:55:13 +08:00
Shamim Rezaie
aa49eebd2a MDL-71671 atto_table: Insert menus html after the button 2021-09-07 13:53:50 +10:00
Shamim Rezaie
1e47c534a7 MDL-71671 editor_atto: Insert html of button menus after the button 2021-09-07 13:53:50 +10:00
Eloy Lafuente (stronk7)
fa67938486 Merge branch 'MDL-72286-master-test' of git://github.com/rezaies/moodle 2021-09-06 23:57:27 +02:00
Shamim Rezaie
d4dfd44491 MDL-56773 atto_equation: The equation editor should always be rtl
Also re-applied the border that was added to the preview area as part of
MDL-44778. The class name that's used no longer exists.
2021-09-03 17:57:40 +10:00
Sara Arjona
ff6e6ca8d2 Merge branch 'MDL-71674-master' of https://github.com/dcai/moodle 2021-09-01 11:36:33 +02:00
Dongsheng Cai
44f85767ab MDL-71674 editor_atto: more assessible errors 2021-09-01 18:15:49 +10:00
abgreeve
a926f529b4 Merge branch 'MDL-72223' of https://github.com/paulholden/moodle 2021-08-30 15:40:44 +08:00
Sara Arjona
d91e9ccee8 Merge branch 'MDL-71603-master' of git://github.com/rezaies/moodle 2021-08-23 17:04:26 +02:00
Frédéric Massart
1273c87cea MDL-72286 editor_atto: Declare type on plugins button groups 2021-08-17 11:58:58 +10:00
Nhan Vo
7bcd58783f
MDL-68639 HTML Editor (Atto): Invalid HTML for nested lists 2021-08-17 02:51:14 +07:00
toanlam
af67582dbe MDL-72031 atto_recordrtc: separate out max_time for audio/video files 2021-08-16 17:11:37 +07:00
Paul Holden
2661214376 MDL-72223 atto_link: link text should match selected text.
Rather then using all text of the currently selected node, instead
use that text the user has currently selected.
2021-08-10 09:45:48 +01:00
Huong Nguyen
80bf558bea MDL-71656 atto: Add meaningful labels to colour items
Colour chooser supported:
 - atto_fontcolor
 - atto_backcolor
2021-08-09 16:00:21 +07:00
Shamim Rezaie
d93fb10f88 MDL-71603 editor_atto: set aria-pressed when a button status is changed 2021-07-28 16:45:27 +10:00
Shamim Rezaie
1eeb7ce395 MDL-71603 editor_atto: Make button icons decorative only 2021-07-28 15:43:59 +10:00
Shamim Rezaie
b078f18c6e MDL-71603 editor_atto: Use aria-expanded for show/hide buttons toggle 2021-07-28 15:43:59 +10:00
Shamim Rezaie
7029fa056c MDL-71603 editor_atto: Focus on the toggled row
quoted from
https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/expanded/

As a general rule, the toggled element should be right below the toggle
button, so screen readers will find it easily. If that is not the case,
then the focus should be placed inside the element upon toggling it
visible, and back to the initial element upon toggling it invisible.
2021-07-28 15:43:59 +10:00
Shamim Rezaie
90b3d575e3 MDL-71603 editor_atto: Wrap toolbar buttons in toolbar rows 2021-07-28 15:43:21 +10:00
Ilya Tregubov
ec50dc2fb7 Merge branch 'MDL-72179-master' of git://github.com/andrewnicols/moodle 2021-07-27 12:36:38 +02:00
Ilya Tregubov
3a55ff2c55 Merge branch 'MDL-71672-master-2' of git://github.com/rezaies/moodle 2021-07-27 11:59:15 +02:00
Andrew Nicols
776f4bd80c MDL-72179 behat: Make use of page resolvers 2021-07-26 15:14:28 +08:00
Ilya Tregubov
501bc9e117 Merge branch 'MDL-71604-master' of git://github.com/rezaies/moodle 2021-07-20 14:09:11 +02:00
Shamim Rezaie
e2150f7da0 MDL-72078 editor_atto: Use role=application and aria-describedby in Atto
According to https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Application_Role
WYSIWYG web editors are proper use of the application role.
2021-07-19 16:45:20 +10:00
Shamim Rezaie
da509ff492 MDL-71604 editor_atto: Move accessibility buttons to the first row 2021-07-19 16:42:25 +10:00
Shamim Rezaie
902ab1e2f6 MDL-71672 atto_equation: Fix the markup and the initial focused element
The initial focused element should be the first operator button.
This commit also fixes the accessibility issues that previously were
wrongly fixed by a redundant click on the first tab using javascript.
2021-07-19 16:40:10 +10:00
Shamim Rezaie
fd18007c1b MDL-71672 atto_managefiles: Focus the first file manager button 2021-07-19 16:40:10 +10:00
Shamim Rezaie
52c1e68631 MDL-71672 atto_emojipicker: Focus the search bar initially 2021-07-19 16:40:10 +10:00
Shamim Rezaie
9e801be452 MDL-71672 atto_recordrtc: focus Atto button after hide 2021-07-19 16:40:10 +10:00
Sara Arjona
a81c372f00 MDL-72036 atto_h5p: Random error with external URL
After a major upgrade was done in h5p.com, some random errors appeared
in the "H5P options are ignored for H5P URLs" scenario.
They have been fixed replacing the URL for different (which should
load quicker). As we're checking external content, no other improvement
can be done on the Moodle site.
2021-07-13 08:36:33 +02:00
Eloy Lafuente (stronk7)
17135030cc Merge branch 'MDL-66539-master' of git://github.com/HuongNV13/moodle 2021-06-29 18:37:20 +02:00
Jun Pataleta
242ccc4752 MDL-71669 atto_table: Set appropriate ARIA roles for table button
The table button can become a menu button when the cursor's position
in the editor is within a table. So we'd need to update the button with
ARIA attributes appropriate for a menu button.
This is best done when the button's highlight gets toggled, so we're
adding an event listener for when this happens and add/remove the ARIA
attributes accordingly.
2021-06-23 12:55:02 +08:00
Jun Pataleta
2dcede1b0b MDL-71669 editor_atto: Fire custom event when toggling button highlight 2021-06-23 12:55:02 +08:00
Jun Pataleta
45906644be MDL-71669 editor_atto: Create an events module for the atto editor 2021-06-23 12:55:01 +08:00
Jun Pataleta
9d943c4ff9 MDL-71669 editor_atto: Set proper roles to toolbar menus
* Menu button fix
  - Added aria-haspopup, aria-controls, and aria-expanded attributes.
* Menu fixes
  - Added aria-labelledby that points to the menu button label.
  - Removed the dialog role in the menu's container.
  - The ul tag needs the "menu" role.
  - The li tag needs the role "none" instead of the "presentation" role

Reference:
https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton
2021-06-18 15:20:08 +08:00