I'm working with Josh LeDuc on the Firepad React component. We're hoping to be able to use JedWatson's
react-codemirror component because it (seems like it) provides a way around the issue of the CodeMirror library doing DOM manipulation itself (which React doesn't like). The problem we're running into is that Firepad doesn't seem to see the CodeMirror library when we merely include react-codemirror (which encapsulates CodeMirror, and successfully instantiates a CodeMirror instance). Firepad errors with:
Uncaught Error: Couldn't find CodeMirror or ACE. Did you forget to include codemirror.js or ace.js?
If we include CodeMirror separately we get
Uncaught TypeError: place is not a function
...an error from within CodeMirror that comes from a block of code meant to be some sort of IE7 workaround.
Does anyone know if there is some reason we shouldn't be able to use Firepad with this react-codemirror component? Or anything that could be done to make Firepad recognize the presence of CodeMirror?
Thanks in advance!
Adam Romines