What version of Codemirror is the website CSDL Editor using? I’ve almost gotten the JCSDL Query Builder implemented for an in-house tool to interact with DataSift for the analytics team, but some of us can create stream definitions quicker in a straight text edit mode than the pretty GUI interface. I tried to get it all working with Codemirror 4.0.0, but that looks to be a newer version that what the DataSift site is using on the editor interface.
We are looking to Open Source the CSDL editor relatively soon. Unfortunately I'm not 100% sure which version of CodeMirror the current CSDL editor uses (it was created before my time!), though I can share the code for it with you via email.