need to init codemirror in link stage, not compile stage