1845 Commits

Author SHA1 Message Date
Sara Arjona
e1034deb8b
Merge branch 'MDL-75670-main' of https://github.com/roland04/moodle 2024-03-04 16:05:18 +01:00
Mikel Martín
d0d62fd06c MDL-75670 theme: Refactor form-inline helper class dropped in BS5
- Replace .form-inline Bootstrap helper class with .d-flex.flex-wrap.align-items-center
- Refactor .form-inline occurrences in SCSS files or remove when unneeded
2024-02-29 13:56:46 +01:00
Mikel Martín
4ce883ae21 MDL-75670 theme: Refactor form-group helper class dropped in BS5
- Replace .form-group Boostrap helper class with .mb-3. The .form-group class was only
adding margin bottom styles, so it is an straightforward change.
- Replace .form-group references in SCSS files with .fitem now .form-group has been removed.
- There were some other .form-group occurrences in the code that were using it not for styling
but incorrectly for managing some logic. These have been also replaced with .fitem or removed.
2024-02-29 13:55:37 +01:00
Stevani Andolo
ec7bd6035c MDL-80391 tiny_html: Fixed multi modal layer display 2024-02-29 12:53:21 +08:00
Sara Arjona
93731ed096
Merge branch 'MDL-80391-main' of https://github.com/stevandoMoodle/moodle 2024-02-28 17:09:43 +01:00
Stevani Andolo
7917d779d1 MDL-80391 tiny_html: Fixed the loose focus in window manager 2024-02-15 10:06:46 +08:00
Andrew Nicols
4349a9164e
MDL-80072 editor_tiny: Editor options should not be passed to format_text 2024-02-12 11:11:19 +08:00
Andrew Nicols
d56303aa54
MDL-80072 core: Promote all formatting options to parameters
Now that PHP has support for named parameters, and we can use them in
Moodle, we should ditch `$options` arrays and use first-class,
documented, parameters.

Whilst this may seem scary, dumb, overwhelming, please note that you do
not need to supply all args, for example, to change the last parameter
of `format_text` you no longer need to do this:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       false,
       null,
       true,
       true,
       true,
       false,
       false,
       true,
    );

Instead you can do:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       allowid: true,
    );

Or better still:

    return \core\container::get(\core\formatting::class)->format_text(
       text: $text,
       format: FORMAT_MOODLE,
       context: $context,
       allowid: true,
    );

This means that we can get defaults in the function signature, improves
our typing, and allows for deprecation and changes to options. It also
sets us up for success in the future.
2024-02-12 11:11:18 +08:00
Ilya Tregubov
fba3e87a24
Merge branch 'MDL-80753-main' of https://github.com/andrewnicols/moodle 2024-02-08 15:32:31 +08:00
Ilya Tregubov
ae95b15d70 Merge branch 'MDL-79433' of https://github.com/paulholden/moodle 2024-02-07 10:12:36 +08:00
Andrew Nicols
05964ef989
MDL-80753 tiny_premium: Load TinyMCE Premium for the current editor ver 2024-01-29 15:06:03 +08:00
Sara Arjona
84c5a2c7ea
Merge branch 'MDL-79152-main' of https://github.com/andrewnicols/moodle 2024-01-24 16:02:23 +01:00
Paul Holden
53109820af
MDL-79433 tiny_autosave: allow non-logged in user calls to webservice.
Accounts for the editor being added to pages for non-logged in users,
such as the "New account" page.
2024-01-18 10:49:10 +00:00
Andrew Nicols
81d9f60840
MDL-79152 editor_tiny: Enable browser-based spell-checking 2024-01-18 12:53:20 +08:00
Jun Pataleta
82c9578e36
Merge branch 'MDL-72308' of https://github.com/paulholden/moodle 2024-01-18 11:31:09 +08:00
Sara Arjona
c06553f908
Merge branch 'MDL-80058-main' of https://github.com/meirzamoodle/moodle 2024-01-17 18:46:09 +01:00
Paul Holden
e2cb2fa5dc
MDL-72308 forms: final removal of legacy formchangechecker YUI. 2024-01-15 14:24:51 +00:00
meirzamoodle
958b48c54d MDL-80081 editor_tiny: Allow empty content in the i tag 2024-01-12 14:04:17 +07:00
Jun Pataleta
f25864aa3a
Merge branch 'MDL-80246-main' of https://github.com/mihailges/moodle 2024-01-11 11:50:07 +08:00
meirzamoodle
d744c7f510 MDL-80058 editor_tiny: add preformatted format to the blocks 2024-01-10 09:37:26 +07:00
David Woloszyn
4116a75858 MDL-79709 tiny_premium: Capability to access Tiny Premium features 2023-12-11 09:47:31 +11:00
Mihail Geshoski
e1ed40385a MDL-80246 tiny_equation: Escape elementid in the data-target attribute
Tabs use the value of the data-target attribute of the active tab link
to find and display the appropriate tab content. In some situations the
elementid value that is used to generate the data-target may contain
certain characters that have a special meaning in the selector context
(e.g. ".", ",", "#") and because of that the target element cannot be
correctly identified. To fix this problem the elementid value needs to
be escaped prior to generating the data-target attribute.
2023-12-08 09:46:48 +08:00
meirzamoodle
f456416318 MDL-80257 editory_tiny: Implement ui_mode: split
Since version 6.4 and later, TinyMCE had a feature `ui_mode: split`.

It enables support for editors in scrollable containers,
and Moodle has some pages, especially the course pages, that are using the scrollable containers.
Therefore, all workaround that is addressed should be replaced by the feature to avoid future problems
regarding the overflow and the z-index issues.
2023-12-04 16:27:47 +07:00
meirzamoodle
c9517f2180 MDL-80257 editory_tiny: Remove tox-tinymce-aux z-index
Remove .tox-tinymce-aux from style.css because z-index is already defined in TinyMCE skin.css
2023-12-04 15:57:48 +07:00
Andrew Nicols
525212f2d2
MDL-78496 core: Address phpcs issues with upgrade.php files 2023-11-19 21:20:53 +08:00
Andrew Nicols
545b36cd4a
MDL-78496 upgrade: remove all the < 4.1.0 upgrade steps
Also includes an upgrade step to prevent upgrading from any
version < 2021112802 (v4.1.0) as anti-cheating measure.
2023-11-17 23:25:36 +08:00
Sara Arjona
c94a681c7d
Merge branch 'MDL-79827' of https://github.com/paulholden/moodle 2023-11-08 18:10:39 +01:00
Meirza
48608e78cd MDL-78903 tiny_h5p: show repositories if editor filepicker type set 2023-10-30 23:30:51 +07:00
Meirza
f79e3f450b MDL-78903 tiny_media: show repositories if editor filepicker type set 2023-10-30 23:30:40 +07:00
Paul Holden
9790527f26
MDL-79827 tiny_link: show repositories only if editor filepicker set. 2023-10-23 21:58:59 +01:00
Huong Nguyen
bacd506fdf MDL-79566 tiny_autosave: Add Javascript submission handler 2023-10-16 09:29:10 +07:00
Sara Arjona
7b83434dbf
Merge branch 'MDL-79626-master' of https://github.com/junpataleta/moodle 2023-10-10 15:13:02 +02:00
Ilya Tregubov
1a34928531
Merge branch 'MDL-79501-master' of https://github.com/geichelberger/moodle 2023-10-10 15:05:32 +08:00
Jun Pataleta
9beff03a96
MDL-79626 upgrade: add the 4.3.0 separation line to all upgrade scripts 2023-10-10 10:44:17 +08:00
Sara Arjona
9877a06246
Merge branch 'MDL-79551-master-rc' of https://github.com/junpataleta/moodle 2023-10-04 12:28:14 +02:00
Jun Pataleta
3d55b4a865
MDL-79551 tiny_html: Remove unnecessary $plugin->release 2023-10-04 14:01:27 +08:00
Jun Pataleta
94bc2cd38b
MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
David Woloszyn
7679452caf MDL-77846 core: Make endpoint revision number checks stricter
In some places we prevented cache poisoning, in others we did not. We
also did not place any restriction on the minimum value for a revision.

This change introduces a new set of functions for configonly endpoints
which validates the revision numbers passed in. If the revision is
either too old, or too new, it is rejected and the file content is not
cached. The content is still served, but caching headers are not sent,
and any local storage caching is prevented.

The current time is used as the maximum version, with 60 seconds added
to allow for any clock skew between cluster nodes. Previously some
locations used one hour, but there should never be such a large clock
skew on a correctly configured system.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-10-04 01:24:19 +00:00
Gregor Eichelberger
91135c5305
MDL-79501 tiny: Fix editing multiple videos
The selection gets lost while opening the modal dialogue to update an
embedded media. Caching the current selection allows us to update the
previously selected node instead of updating the first embedded media.

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2023-09-29 14:07:44 +02:00
Huong Nguyen
e38aa09dee
MDL-78239 editor_tiny: Calculate correct height for non-visible editors 2023-09-26 14:50:13 +07:00
Helen Foster
13b7ea5d44 MDL-79323 lang: Import fixed English strings (en_fix) 2023-09-19 10:24:37 +01:00
Andrew Nicols
1660b7d53e
MDL-78324 editor_tiny: Update modals to stop using factory 2023-09-09 00:04:00 +08:00
Ilya Tregubov
94cf94286a
Merge branch 'MDL-78254' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Andrew Nicols
12c67aaae1
MDL-79264 tiny_equation: Correct debounce method
The debounced method was being called immediately instead of being
debounced.
2023-09-08 22:14:28 +08:00
Andrew Nicols
6ceabf28d3
Merge branch 'MDL-79264-master' of https://github.com/geichelberger/moodle 2023-09-08 22:14:28 +08:00
Gregor Eichelberger
f1e12ca909
MDL-79264 tiny: Replace hardcoded contextid
The `contextid` argument of the `tiny_equation_filter` AJAX call is
hardcoded to 1, which causes trouble if the context table does not start
with id 1.

Signed-off-by: Gregor Eichelberger <gregor.eichelberger@tuwien.ac.at>
2023-09-05 13:24:50 +02:00
Paul Holden
7d32eabbd2
MDL-78254 libraries: upgrade to version 5.65.15 of CodeMirror. 2023-09-05 10:06:57 +01:00
Andrew Nicols
b3d8c1a862
Merge branch 'MDL-75268-master' of https://github.com/davewoloszyn/moodle 2023-09-05 11:39:41 +08:00
Andrew Nicols
ce4d696004
Merge branch 'MDL-79230' of https://github.com/paulholden/moodle 2023-09-05 10:56:28 +08:00
Andrew Nicols
1e6e9052ba
Merge branch 'MDL-79236' of https://github.com/paulholden/moodle 2023-09-05 10:40:53 +08:00