Just in case anyone else runs into this - I'm using Git for version control, and the new libraries/codemirror/ has a .gitignore that through me off. If you end up with a semi-functioning YAMLform module, and a javascript error that complains about missing CodeMirror function - that's the culprit.

Delete the extra .gitignore file (libraries/codemirror/.gitignore) and add this code to your site: libraries/codemirror/lib/codemirror.js

Should fix.

Comments

wheelercreek created an issue. See original summary.

wheelercreek’s picture

Issue summary: View changes
jrockowitz’s picture

Ouch that is a really frustrating problem, that needs to be documented.

  • jrockowitz committed 1a0216b on 8.x-1.x
    Issue #2834197 by wheelercreek: Uncaught ReferenceError: CodeMirror -...

  • jrockowitz committed 863ab38 on 8.x-1.x
    Issue #2834197 by wheelercreek: Uncaught ReferenceError: CodeMirror -...
jrockowitz’s picture

Status: Active » Fixed

I have been following this issue https://github.com/codemirror/CodeMirror/issues/4328 and I decided to just start using this mirror https://github.com/components/codemirror/archive/5.21.0.zip which completely solves the problem.

Please test using the latest dev release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.