CodeMirror 5 implementation
npm i https://github.com/eldoy/cm5.git
Require the editor:
var cm5 = require('cm5')
Include it on the page and run it:
<textarea id="editor"></textarea>
<script>
window.cm5 =${cm5}
window.editor = cm5({ el: '#editor', mode: 'js' })
// Autofocus
window.editor.focus()
</script>
MIT Licensed. Enjoy!
Created by Eldøy Projects