upgrading to CodeMirror 4
don't overwrite own changes if validation is slower than the user types