Hi all,
I was hoping I could get just the most basic example to work, like the one form the main web site:
First thing I would have expected is a composer package, but that does not exist. So I downloaded the entire master zipfile of version 5.63.3 to my local public folder /_/lib/codemirror/5.63.3/
Your example points to ./lib/codemirror.js - which does not exist, the correct path is ./src.
But it does not stop there. “CodeMirror” can’t be found because its first line says
import { CodeMirror } from “./edit/main.js”
Apparently, it can’t deal with its own file structure.
Also, we need to add type=“module” to the JS script tag.
Would you agree that a basic example should include all instructions to just make it work? Where are these instructions?
Same with this example:
https://codemirror.net/doc/manual.html#overview
Even the demo files that are delivered with the master are having the problem:
https://dellekom.de/_/lib/codemirror/5.63.3/demo/theme.html
Many thanks
Andreas