Too bad this wasn't in the upgrade docs http://codemirror.net/doc/upgrade_v3.html, only on a google group post https://groups.google.com/forum/?fromgroups=#!searchin/codemirror/compoundChange/codemirror/x4KPGsiX0KI/h8jwt4o-8OkJ.