Skip to content

Commit 0516949

Browse files
committed
starting to kinda work
1 parent 016e5c4 commit 0516949

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎v3/js/opt-frontend-common.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,12 @@ function supports_html5_storage() {
544544

545545
// abstraction so that we can use either CodeMirror or Ace as our code editor
546546
function pyInputGetValue() {
547-
return pyInputCodeMirror.getValue();
547+
if (useCodeMirror) {
548+
return pyInputCodeMirror.getValue();
549+
}
550+
else {
551+
return pyInputAceEditor.getValue();
552+
}
548553
}
549554

550555
function pyInputSetValue(dat) {

0 commit comments

Comments
 (0)