Set a refresh on codemirror instance rather than setting the cursor position. Closes #640

This commit is contained in:
terakilobyte
2015-05-28 19:51:42 -04:00
parent 131b9ad1b7
commit 193f9d16db
2 changed files with 6 additions and 2 deletions

View File

@@ -106,7 +106,11 @@ var allSeeds = '';
allSeeds += elem.replace(/fccss/g, '<script>').replace(/fcces/g,'</script>') + '\n';
});
editor.setValue(allSeeds);
editor.setCursor(15);
(function() {
setTimeout(function() {
editor.refresh();
}, 200);
})();
})();