fixes for codemirror v4
Merge pull request #170 from adobe/randy/cmv4

Fixes for codemirror v4