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

pull/718/merge
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);
})();
})();

View File

@ -91,4 +91,4 @@ block content
.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
script(src="/js/lib/coursewares/coursewaresHCJQFramework_0.1.6.js")
script(src="/js/lib/coursewares/coursewaresHCJQFramework_0.1.7.js")