subset of ParEdit for CodeMirror