AutorÃa | Ultima modificación | Ver Log |
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/codemirror1 Download the latest codemirror code somewhere (example /tmp/cm) using:mkdir -p codemirror/node_modulesnpm install --prefix codemirror codemirror@5 --save-devNote down the version number displayed by the command, to update thirdpartylibs.xml accordingly.2 Then copy the following files to your local Moodle directory:[CODEMIRRORPATH] = codemirror/node_modulescp [CODEMIRRORPATH]/codemirror/lib/codemirror.js [LIBRARYPATH]/jscp [CODEMIRRORPATH]/codemirror/mode/css/css.js [LIBRARYPATH]/jscp [CODEMIRRORPATH]/codemirror/mode/htmlmixed/htmlmixed.js [LIBRARYPATH]/jscp [CODEMIRRORPATH]/codemirror/mode/javascript/javascript.js [LIBRARYPATH]/jscp [CODEMIRRORPATH]/codemirror/mode/xml/xml.js [LIBRARYPATH]/js3 Rebuild the module by:cd [PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/yui/src/grunt shifter4 Update the version number in (using the version noted down in #1):[PATH TO YOUR MOODLE]/lib/editor/atto/plugins/html/thirdpartylibs.xml