fix: refresh codemirror in next event loop

Fix issue #68
Closes #76
Merge pull request #78 from angular-ui/fix-refresh-codemirror-in-the-next-event-loop

fix: refresh codemirror in next event loop