fix bug:check codemirror exist code