add save api
add CodeMirror to editor