Skip to content

Commit

Permalink
MDL-71718 lib: Set Moodle files after codemirror upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Dec 30, 2021
1 parent 8dc095e commit fdfa1a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/editor/atto/plugins/html/thirdpartylibs.xml
Expand Up @@ -4,7 +4,7 @@
<location>yui/src/codemirror</location>
<name>codemirror</name>
<license>MIT</license>
<version>5.59.4</version>
<version>5.65.0</version>
<licenseversion></licenseversion>
</library>
<library>
Expand Down
@@ -1,6 +1,6 @@
Description of importing the codemirror library into Moodle.

NOTE 2: To make it more readable, in this explanation [LIBRARYPATH] means:
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
Expand All @@ -14,11 +14,9 @@ cp node_modules/codemirror/mode/htmlmixed/htmlmixed.js [LIBRARYPATH]/js
cp node_modules/codemirror/mode/javascript/javascript.js [LIBRARYPATH]/js
cp node_modules/codemirror/mode/xml/xml.js [LIBRARYPATH]/js

3 Update the verison number in:
[PATH TO YOUR MOODLE]/var/www/html/m/master2/lib/editor/atto/plugins/html/thirdpartylibs.xml

3 rebuild the module by:
3 Rebuild the module by:
cd [PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/yui/src/
grunt shifter


4 Update the version number in (using the version noted down in #1):
[PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/thirdpartylibs.xml

0 comments on commit fdfa1a9

Please sign in to comment.