Skip to content

Commit

Permalink
Added global variable to disable CodeMirror syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Singh committed Jun 16, 2017
1 parent 115822c commit 70fad5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion togetherjs/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ define(["jquery", "util", "session", "elementFinder", "eventMaker", "templating"
return false;
};

TogetherJS.addTracker(CodeMirrorEditor, true /* skip setInit */);
if (!window.disableCodeMirrorSync) {
TogetherJS.addTracker(CodeMirrorEditor, true /* skip setInit */);
}

var CKEditor = util.Class({
trackerName: "CKEditor",
Expand Down

0 comments on commit 70fad5d

Please sign in to comment.