use codemirror for plugin editor