From 09895baf3bcd53fed3e88a60b4d8cd37af11e2ad Mon Sep 17 00:00:00 2001 From: harkirat Date: Mon, 19 Jun 2017 01:39:37 -0700 Subject: [PATCH] Added global variable to disable CodeMirror syncing --- togetherjs/forms.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/togetherjs/forms.js b/togetherjs/forms.js index 3c4986dae..e11246a7b 100644 --- a/togetherjs/forms.js +++ b/togetherjs/forms.js @@ -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",