checking in codemirror