fix codemirror text-align bug