diff --git a/app/assets/javascripts/editor.js.erb b/app/assets/javascripts/editor.js.erb index 4164eb80..ebf9d4da 100644 --- a/app/assets/javascripts/editor.js.erb +++ b/app/assets/javascripts/editor.js.erb @@ -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) {