fix: refresh codemirror in next event loop

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