diff --git a/lib/editor/atto/plugins/html/thirdpartylibs.xml b/lib/editor/atto/plugins/html/thirdpartylibs.xml index c5c62d3729d..324872bf012 100644 --- a/lib/editor/atto/plugins/html/thirdpartylibs.xml +++ b/lib/editor/atto/plugins/html/thirdpartylibs.xml @@ -4,7 +4,7 @@ yui/src/codemirror codemirror CodeMirror is a versatile text editor implemented in JavaScript for the browser. - 5.65.0 + 5.65.9 MIT https://github.com/codemirror/CodeMirror diff --git a/lib/editor/atto/plugins/html/yui/src/codemirror/readme_moodle.txt b/lib/editor/atto/plugins/html/yui/src/codemirror/readme_moodle.txt index a9a720088c2..abcdc60f431 100644 --- a/lib/editor/atto/plugins/html/yui/src/codemirror/readme_moodle.txt +++ b/lib/editor/atto/plugins/html/yui/src/codemirror/readme_moodle.txt @@ -3,16 +3,21 @@ 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 +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) 2 Then copy the following files to your local Moodle directory: +If using npm install: +[CODEMIRRORPATH] = node_modules -cp node_modules/codemirror/lib/codemirror.js [LIBRARYPATH]/js -cp node_modules/codemirror/mode/css/css.js [LIBRARYPATH]/js -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 +If using the zip file: +[CODEMIRRORPATH] = codemirror-X.XX.X + +cp [CODEMIRRORPATH]/codemirror/lib/codemirror.js [LIBRARYPATH]/js +cp [CODEMIRRORPATH]/codemirror/mode/css/css.js [LIBRARYPATH]/js +cp [CODEMIRRORPATH]/codemirror/mode/htmlmixed/htmlmixed.js [LIBRARYPATH]/js +cp [CODEMIRRORPATH]/codemirror/mode/javascript/javascript.js [LIBRARYPATH]/js +cp [CODEMIRRORPATH]/codemirror/mode/xml/xml.js [LIBRARYPATH]/js 3 Rebuild the module by: cd [PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/yui/src/