When using CDN to load Mergely, there is no access to the CodeMirror object so using modes like https://github.com/codemirror/codemirror5/blob/master/mode/javascript/javascript.js doesn't work
for example
<script src="https://cdnjs.cloudflare.com/ajax/libs/mergely/5.0.0/mergely.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mergely/5.0.0/mergely.css"></script>
<script src="https://unpkg.com/codemirror@5.65.14/mode/javascript/javascript.js"></script>
results in :
javascript.js:10 Uncaught ReferenceError: CodeMirror is not defined
at javascript.js:10:9
at javascript.js:11:3
Is there a way to add modes when using the CDN install ?
When using CDN to load Mergely, there is no access to the CodeMirror object so using modes like https://github.com/codemirror/codemirror5/blob/master/mode/javascript/javascript.js doesn't work
for example
results in :
Is there a way to add modes when using the CDN install ?