CodeMirror 6 implementation
Clone this repo:
git clone https://github.com/eldoy/cm6.git
cd cm6
npm install
Edit editor.mjs
and run npm run pack
Include the editor.js
file on your page:
<script src="editor.js">
<div id="editor"></div>
<script>
var editor = new EditorView({
extensions: window.extensions,
parent: document.querySelector('#editor')
})
</script>
MIT Licensed. Enjoy!
Created by Eldøy Projects