fix: refresh codemirror in next event loop

Fix for issue https://github.com/angular-ui/ui-codemirror/issues/68