Merge branch 'editor-js-refactor' into editor-frontend-refactor

This commit is contained in:
Ralf Teusner
2016-09-01 11:02:08 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -4,13 +4,15 @@ $(function() {
//TODO Change this. Otherwise it will fuck people up,
//because it's really confusing if the variables and the code are
//split over 6 files.
$.extend(CodeOceanEditor,
$.extend(
CodeOceanEditor,
CodeOceanEditorAJAX,
CodeOceanEditorEvaluation,
CodeOceanEditorFlowr,
CodeOceanEditorSubmissions,
CodeOceanEditorTurtle,
CodeOceanEditorWebsocket);
CodeOceanEditorWebsocket
);
if ($('#editor').isPresent() && CodeOceanEditor) {
if (CodeOceanEditor.isBrowserSupported()) {

View File

@ -203,7 +203,7 @@ var CodeOceanEditor = {
if (this.qa_api) {
editor.getSession().on("change", function (deltaObject) {
this.qa_api.executeCommand('syncEditor', [this.active_file, deltaObject]);
});
}.bind(this));
}
var document = editor.getSession().getDocument();