Reflect api changes to codemirror