set up codemirror integration