Merge remote-tracking branch 'origin/master' into testruns
This commit is contained in:
@@ -310,14 +310,14 @@ $(function() {
|
||||
//console.log("Text is the same: " + same);
|
||||
|
||||
// if the text is not copied from within the editor (from any file), send an event to lanalytics
|
||||
//if(!same){
|
||||
// publishCodeOceanEvent("codeocean_editor_paste", {
|
||||
// text: pasteObject.text,
|
||||
// exercise: $('#editor').data('exercise-id'),
|
||||
// file_id: "1"
|
||||
//
|
||||
// });
|
||||
//}
|
||||
if(!same){
|
||||
publishCodeOceanEvent("codeocean_editor_paste", {
|
||||
text: pasteObject.text,
|
||||
exercise: $('#editor').data('exercise-id'),
|
||||
file_id: "1"
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var handleScoringResponse = function(response) {
|
||||
|
@@ -154,7 +154,10 @@ $(function() {
|
||||
} else if ($('.edit_exercise, .new_exercise').isPresent()) {
|
||||
execution_environments = $('form').data('execution-environments');
|
||||
file_types = $('form').data('file-types');
|
||||
new MarkdownEditor('#exercise_instructions');
|
||||
// new MarkdownEditor('#exercise_instructions');
|
||||
new MarkdownEditor('#exercise_description');
|
||||
// todo: add an ace editor for each file
|
||||
|
||||
enableInlineFileCreation();
|
||||
inferFileAttributes();
|
||||
observeFileRoleChanges();
|
||||
|
Reference in New Issue
Block a user