[CodeMirror] UI-Refresh, unit tests fix, and  3.02 update

Hi @ProLoser 

Inspired by your last commits #316 I fixed my commented unit tests, added your ui-refresh and updated the CodeMirror version to 3.02.