|
@@ -857,8 +857,8 @@ export function initVisualUI () {
|
|
|
});
|
|
|
|
|
|
TextEditor.initTextEditor("ivprog-text-editor");
|
|
|
- if (settingsProgrammingTypes != "textual") {
|
|
|
- TextEditor.disable(true);
|
|
|
+ if (settingsProgrammingTypes == "textual") {
|
|
|
+ TextEditor.disable(false);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -901,7 +901,7 @@ function runCodeAssessment () {
|
|
|
window.studentGrade = null;
|
|
|
|
|
|
if (settingsProgrammingTypes == "textual") {
|
|
|
- strCode = $('.ivprog_textual_code').val();
|
|
|
+ strCode = TextEditor.getCode();
|
|
|
} else {
|
|
|
strCode = CodeManagement.generate();
|
|
|
}
|
|
@@ -938,7 +938,7 @@ function runCode () {
|
|
|
let strCode = null;
|
|
|
|
|
|
if (settingsProgrammingTypes == "textual") {
|
|
|
- strCode = $('.ivprog_textual_code').val();
|
|
|
+ strCode = TextEditor.getCode();
|
|
|
} else {
|
|
|
strCode = CodeManagement.generate();
|
|
|
}
|