Fixed updating codemirror while editing