Commit graph

1512 commits

Author SHA1 Message Date
Jun Pataleta
01c8c667fc MDL-68568 editor_atto: Upgrade step for the new toolbar default layout
* emojipicker added to files
* indent moved to list
2020-05-21 00:39:00 +08:00
Mike Churchward
b677d33d62 MDL-68568 editor-atto: Move 'indent' next to 'lists' by default. 2020-05-21 00:10:37 +08:00
David Mudrák
87f9e88ddd MDL-68563 filters: Fix unit test regressions
Also incrementing the plugin versions to make sure the unit test
environment is reinitialised and the tests are reliable.

Minor correction of phpdocs @package tags included.
2020-05-13 16:28:24 +08:00
Simey Lameze
4044914d17 MDL-68563 editor_atto: display emoji picker on atto toolbar
As per enabling of emoticon filters enabling emoji picker is now visible
by default on the Atto editor toolbar.
2020-05-13 16:27:05 +08:00
Andrew Nicols
29c5fafff5 MDL-66109 js: Fix Shifter linting issues 2020-05-11 11:07:49 +08:00
Andrew Nicols
ae346c8624 Merge branch 'MDL-68548' of https://github.com/Neosi/moodle 2020-05-06 08:55:51 +08:00
Eloy Lafuente (stronk7)
dac1b3a4eb Merge branch 'MDL-68541-39' of https://github.com/PoetOS/moodle 2020-05-06 01:04:14 +02:00
Neosi
27e44c18fe MDL-68548 editor-atto: change <i> tags to <em> 2020-05-05 09:50:26 +01:00
Jake Dallimore
eec3a65e5d Merge branch 'MDL-47750' of https://github.com/timhunt/moodle 2020-05-05 11:55:15 +08:00
Andrew Nicols
0449045fa0 Merge branch 'MDL-68542-39' of https://github.com/JayChurchward/moodle 2020-05-05 11:50:04 +08:00
Tim Hunt
33d4f4b0b9 MDL-47750 Atto: allow pasting of images
Note: this works if you have image data on the clipboard (e.g. a
screen-grab). It does not work in most other cases, basically because
web browsers are completely unhelpful in the paste/drop events
they raise. See the detailed analysis of my testing in the tracker
issue. (Hopefully this will improve in future.)
2020-05-04 10:15:08 +01:00
JayChurchward
869f44063e MDL-68542 editor-atto: Change the bold tag to <strong>. 2020-04-30 11:29:22 -04:00
Mike Churchward
7e03b27dd9 MDL-68541 editor-atto: Limiting alt text length, changing ignore text. 2020-04-30 09:47:59 -04:00
Neosi
d772cce77a MDL-68551 editor-atto: change <strike> to <del> 2020-04-29 16:00:12 +01:00
Shamim Rezaie
613c130665 MDL-45227 atto_align: Make IE follow css styling 2020-03-27 21:32:06 +11:00
Shamim Rezaie
31d62654a6 MDL-45227 atto_rtl: Automatically set alignment when direction changes 2020-03-27 21:25:41 +11:00
Shamim Rezaie
372616ace0 MDL-45227 editor_atto: PR changes and improved behat 2020-03-27 21:25:41 +11:00
Avi Levy
dbae95c6da MDL-45227 editor_atto: add behat test for RTL and LTR direction 2020-03-27 21:25:41 +11:00
Nadav Kavalerchik
b10155308f MDL-45227 editor_atto: Add direction to default ATTO generated markup 2020-03-27 21:25:41 +11:00
Sara Arjona
fb56f5190c MDL-68116 atto_h5p: deprecate unused strings 2020-03-20 10:07:34 +01:00
Sara Arjona
186a0361a3 MDL-68116 atto_h5p: simplify fields to add H5P content
The embed section has been removed in order to simplify this screen.
It was added to make easier include content coming from h5p.org but,
as soon users won't be able to use it, it makes no sense.
Users will still be able to use the "HTML" button to paste the
embed code.
2020-03-20 10:07:34 +01:00
Ferran Recio
40cef8afe7 MDL-67707 core_h5p: move shared h5p files to core fixtures 2020-03-16 17:52:08 +01:00
Sara Arjona
08fda3e0f8 MDL-67063 h5p: new h5plib plugintype for supporting multi coreAPI
A new plugintype has been created for having more than one installed
third-party H5P libraries. Existing libraries have been moved from
lib/h5p to the new h5plib_v124 plugin.
2020-03-11 08:46:16 +01:00
Shamim Rezaie
2c4be2ebfd MDL-67675 atto_h5p: No need to manually clear the H5P placeholder 2020-01-28 22:28:57 +11:00
Adrian Greeve
e2c5315b5c Merge branch 'MDL-65775-master' of git://github.com/ferranrecio/moodle 2020-01-23 15:11:02 +08:00
Michael Milette
a75fe2f1b5 MDL-66858 master: Enable <header> tags in Atto editor.
(amended to add the src/editor/js/clean.js
file that was originally missing)
2020-01-22 00:04:23 +01:00
Andrew Nicols
43aa3cbe44 MDL-59817 atto_accessibilitychecker: Handle transparency properly
Some browsers, notably Firefox, do not return the computed style for
background colour in a computed RGB format. Instead they return the RGBA
where the alpha channel is set to fully transparent.

To solve this we need to work up the hierarchy and compute the
background colour for each parent node until we reach full alpha (1).

We can use a standard calculation to approximate the value for the
resultant element background by multiplying the alpha of the current
transparent (or semi-transparent) node with the R, G, or B channel in
question, and that of the parent node's background colour.

There are cases where this will not be 100% accurate - notably where
there is some additional content in addition to the parent background,
but this gives us a reasoable approximation for the majority of cases.
Additionally the code has never considered the full set of node content
when calculating this information.
2020-01-10 15:26:51 +08:00
Eloy Lafuente (stronk7)
4621917c62 MDL-67114 core: php74 fix. Fix use of scalar as array in core
There are various places where it's not guaranteed that the
variable being used is array, and instead, can be null, bool, int...

We need to check that because php74 warns about it.

Where possible we have used the coalesce operator as
replacement for isset() ternary operations.
2020-01-03 11:33:15 +01:00
Adrian Greeve
42d7f7f9e4 Merge branch 'MDL-65809-master' of git://github.com/sarjona/moodle 2019-12-24 14:53:03 +08:00
Adrian Greeve
f00542c485 Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle 2019-12-23 14:26:39 +08:00
Sara Arjona
a26cfe71d3 MDL-65809 upgrade: clean < 3.5.0 upgrade steps
This just deletes all the upgrade steps previous to 3.5.0. Some
small adjustments, like tweaking globals can also be applied
when needed.

Also includes an upgrade step to prevent upgrading from any
version < 2018051700 (v3.5.0) as anti-cheating measure.

Previous commits have removed/deprecated all the upgradelib functions
not used anymore in codebase. Deletion has been documented in corresponding
upgrade.txt files:

- upgrade_fix_block_instance_configuration()
- upgrade_theme_is_from_family(), upgrade_find_theme_location()
and linkcoursesectionsupgradescriptwasrun setting
- upgrade_block_positions
- upgrade_fix_config_auth_plugin_names()
 and upgrade_fix_config_auth_plugin_defaults()
- format_xxx_upgrade_remove_numsections(), format_xxx_upgrade_hide_extra_sections()
and format_xxx_upgrade_add_empty_sections()
- filter_mathjaxloader_upgrade_cdn_cloudflare()
and filter_mathjaxloader_upgrade_mathjaxconfig_equal()
- get_assignments_with_rescaled_null_grades()

These have been kept because continue being used by restore:

- \core\task\refresh_mod_calendar_events_task
2019-12-20 12:20:43 +01:00
Eloy Lafuente (stronk7)
077fa38a32 Merge branch 'MDL-67381-master' of git://github.com/rezaies/moodle 2019-12-18 16:19:57 +01:00
Ferran Recio
69d8c40c5b MDL-65775 atto_html: upgrade codemirror to 5.49.2 2019-12-17 16:24:11 +01:00
Sara Arjona
d273944857 MDL-67464 core_h5p: use h5p.com URLs in behat tests
The H5P content used in behat for validating external URLs
behaviour shouldn't point h5p.org because it may stop working
(it's not for real content). These content have been moved to
moodle.h5p.com (payment account).
Besides, the scenarios loading content from external URLs
have been labelel with @external.
2019-12-12 16:03:52 +01:00
Bas Brands
9396731e94 MDL-66999 theme_boost: @extend replace .col-xs-*
Remove legacy col-xs-* classes. They are changed in upstream
Bootstrap 4 stable with just col-*.
2019-12-09 10:49:39 +01:00
Shamim Rezaie
07cc70073b MDL-67381 atto_recordrtc: Fix the preview issue after recording 2019-12-09 20:28:32 +11:00
Eloy Lafuente (stronk7)
492d047d11 MDL-67284 upgrade: add 3.8.0 separation line to all upgrade scripts 2019-11-17 11:40:19 +01:00
Eloy Lafuente (stronk7)
d5be859063 MDL-67199 versions: bump all versions and requires near release
version = 2019111800 release version
requires= 2019111200 current beta (week7roll1) version
2019-11-12 17:57:08 +01:00
Sara Arjona
9bb296deb0 MDL-66405 core_h5p: Fix behat tests 2019-11-11 12:01:47 +01:00
Adrian Greeve
65d053ec0d Merge branch 'MDL-67129-master-2' of git://github.com/bmbrands/moodle 2019-11-11 08:07:03 +08:00
Eloy Lafuente (stronk7)
a1e0f47fe9 Merge branch 'MDL-66405-master' of git://github.com/aanabit/moodle 2019-11-11 00:33:16 +01:00
David Mudrák
cf36114501 MDL-67146 lang: Update behat scenario files with the new string wording 2019-11-09 06:36:25 +01:00
Helen Foster
fda41f4588 MDL-67146 lang: Import fixed English strings (en_fix)
Significant string changes:

* configallowemojipicker,core_admin - including emoji picker button in
  Atto
* viewconversation,mod_forum - 'conversation' changed to 'discussion'
2019-11-09 06:35:22 +01:00
Amaia Anabitarte
ba70ec2666 MDL-66405 filter_h5p: Behat tests for H5P filter 2019-11-08 17:08:58 +01:00
Amaia Anabitarte
7d8af94f86 MDL-66405 atto_h5p: Behat tests for H5P atto button 2019-11-08 17:08:57 +01:00
Bas Brands
fda23bf7cd MDL-67129 atto_h5p: uneditable .h5p-placeholder container 2019-11-07 14:06:38 +01:00
Eloy Lafuente (stronk7)
d01d18cad8 NOBUG: Fixed SVG browser compatibility 2019-11-05 13:34:50 +01:00
Adrian Greeve
69ff7df008 Merge branch 'MDL-46779-master' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:40 +08:00
Adrian Greeve
f87a2e6fa0 Merge branch 'MDL-46779-master' of https://github.com/ryanwyllie/moodle 2019-11-04 19:21:39 +08:00
Ryan Wyllie
ef2afe4c3d MDL-46779 editor: fix case of emoji picker lang string 2019-11-01 14:34:14 +08:00