MDL-78254 libraries: upgrade to version 5.65.15 of CodeMirror.

This commit is contained in:
Paul Holden
2023-09-05 10:06:57 +01:00
parent 206c3a66e7
commit 7d32eabbd2
6 changed files with 12 additions and 11 deletions
@@ -4,7 +4,7 @@
<location>yui/src/codemirror</location>
<name>codemirror</name>
<description>CodeMirror is a versatile text editor implemented in JavaScript for the browser.</description>
<version>5.65.12</version>
<version>5.65.15</version>
<license>MIT</license>
<repository>https://github.com/codemirror/codemirror5</repository>
</library>
@@ -9871,7 +9871,7 @@ var define = null; // Remove require.js support in this context.
addLegacyProps(CodeMirror);
CodeMirror.version = "5.65.12";
CodeMirror.version = "5.65.15";
return CodeMirror;
File diff suppressed because one or more lines are too long
@@ -9871,7 +9871,7 @@ var define = null; // Remove require.js support in this context.
addLegacyProps(CodeMirror);
CodeMirror.version = "5.65.12";
CodeMirror.version = "5.65.15";
return CodeMirror;
@@ -9867,7 +9867,7 @@
addLegacyProps(CodeMirror);
CodeMirror.version = "5.65.12";
CodeMirror.version = "5.65.15";
return CodeMirror;
@@ -3,15 +3,16 @@ Description of importing the codemirror library into Moodle.
NOTE: To make it more readable, in this explanation [LIBRARYPATH] means:
[PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/yui/src/codemirror
1 Download the latest codemirror code somewhere (example /tmp/cm) using: npm install codemirror OR download the zip file
(note down the version number displayed by the command, you'll need it later)
1 Download the latest codemirror code somewhere (example /tmp/cm) using:
mkdir -p codemirror/node_modules
npm install --prefix codemirror codemirror@5 --save-dev
Note down the version number displayed by the command, to update thirdpartylibs.xml accordingly.
2 Then copy the following files to your local Moodle directory:
If using npm install:
[CODEMIRRORPATH] = node_modules
If using the zip file:
[CODEMIRRORPATH] = codemirror-X.XX.X
[CODEMIRRORPATH] = codemirror/node_modules
cp [CODEMIRRORPATH]/codemirror/lib/codemirror.js [LIBRARYPATH]/js
cp [CODEMIRRORPATH]/codemirror/mode/css/css.js [LIBRARYPATH]/js