Force CodeMirror refresh after adding entities.