Merge branch 'editor-js-refactor' into editor-frontend-refactor
This commit is contained in:
@ -4,13 +4,15 @@ $(function() {
|
|||||||
//TODO Change this. Otherwise it will fuck people up,
|
//TODO Change this. Otherwise it will fuck people up,
|
||||||
//because it's really confusing if the variables and the code are
|
//because it's really confusing if the variables and the code are
|
||||||
//split over 6 files.
|
//split over 6 files.
|
||||||
$.extend(CodeOceanEditor,
|
$.extend(
|
||||||
|
CodeOceanEditor,
|
||||||
CodeOceanEditorAJAX,
|
CodeOceanEditorAJAX,
|
||||||
CodeOceanEditorEvaluation,
|
CodeOceanEditorEvaluation,
|
||||||
CodeOceanEditorFlowr,
|
CodeOceanEditorFlowr,
|
||||||
CodeOceanEditorSubmissions,
|
CodeOceanEditorSubmissions,
|
||||||
CodeOceanEditorTurtle,
|
CodeOceanEditorTurtle,
|
||||||
CodeOceanEditorWebsocket);
|
CodeOceanEditorWebsocket
|
||||||
|
);
|
||||||
|
|
||||||
if ($('#editor').isPresent() && CodeOceanEditor) {
|
if ($('#editor').isPresent() && CodeOceanEditor) {
|
||||||
if (CodeOceanEditor.isBrowserSupported()) {
|
if (CodeOceanEditor.isBrowserSupported()) {
|
||||||
|
@ -203,7 +203,7 @@ var CodeOceanEditor = {
|
|||||||
if (this.qa_api) {
|
if (this.qa_api) {
|
||||||
editor.getSession().on("change", function (deltaObject) {
|
editor.getSession().on("change", function (deltaObject) {
|
||||||
this.qa_api.executeCommand('syncEditor', [this.active_file, deltaObject]);
|
this.qa_api.executeCommand('syncEditor', [this.active_file, deltaObject]);
|
||||||
});
|
}.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
var document = editor.getSession().getDocument();
|
var document = editor.getSession().getDocument();
|
||||||
|
Reference in New Issue
Block a user