Codemirror patch2