Closed FezVrasta closed 10 years ago
You can't use CodeMirror from global scope.
Use brackets.getModule("thirdparty/CodeMirror2/lib/codemirror") instead of global CodeMirror.
at Object.defineProperty.get (file:///C:/Program%20Files%20(x86)/Brackets/dev/src/brackets.js:114:32)
at Object.<anonymous> (file:///C:/Users/<username>/AppData/Roaming/Brackets/extensions/user/brackets-code-folding/foldhelpers/xml-fold.js:12:15)
at Object.context.execCb (file:///C:/Program%20Files%20(x86)
This is true for the bleeding edge brackets code in git (Sprint 38). However most people use and install the stable version (Sprint 37 and lower), so we cannot make this update yet. If you try to use brackets.getModule(...) to get the CodeMirror object in the stable release it throws an error.
Oh I didn't know this, I thought was something already compatible. Sorry for that so.
thanks.